// Lean compiler output
// Module: Lake.Util.Version
// Imports: public import Lean.Data.Json public import Lake.Util.Date import Init.Data.String.Slice import Init.Data.String.TakeDrop import Lean.Data.Trie import Init.Data.String.Search
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lake_StdVer_instMin;
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instLE;
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5;
static lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__11;
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4;
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3;
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0;
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release___override(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr(lean_object*, lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__5;
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instOrdSemVerCore_ord___boxed(lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lake_SemVerCore_instToString___closed__0;
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instLE;
lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_instDecidableEqSemVerCore_decEq(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Lake_Util_Version_0__Lake_isWildVer(lean_object*);
static lean_object* l_Lake_instInhabitedStdVer_default___closed__0;
lean_object* l_String_Slice_toNat_x3f(lean_object*);
lean_object* l_System_FilePath_join(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__15;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_ble(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMin___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___redArg___boxed(lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_defaultOrigin;
LEAN_EXPORT lean_object* l_Lake_instReprStdVer;
LEAN_EXPORT lean_object* l_Lake_StdVer_parseM(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerComparator_test___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__2;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__18;
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instDecodeVersionToolchainVer___lam__0(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0;
LEAN_EXPORT lean_object* l_Lake_toolchainFileName;
LEAN_EXPORT uint8_t l_Lake_instOrdSemVerCore_ord(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__5;
static lean_object* l_Lake_ToolchainVer_ofString___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_wild_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toString(uint8_t);
static lean_object* l_Lake_instReprToolchainVer___closed__0;
lean_object* l_Std_Format_fill(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator___closed__0;
LEAN_EXPORT lean_object* l_Lake_instInhabitedVerRange;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f(lean_object*);
LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer(lean_object*, lean_object*);
lean_object* l_Lean_Data_Trie_empty(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0;
lean_object* l_String_quote(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprComparatorOp_repr___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr_elim(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerRange_parse(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0___boxed(lean_object*, lean_object*, lean_object*);
uint8_t l_Lake_instDecidableEqDate_decEq(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1;
LEAN_EXPORT lean_object* l_Lake_instOrdSemVerCore;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
LEAN_EXPORT lean_object* l_Lake_VerComparator_instInhabited;
uint8_t lean_usize_dec_eq(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_ToolchainVer_prOrigin___closed__0;
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instToJson;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_toString(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other_elim___redArg(lean_object*, lean_object*);
lean_object* l_String_Slice_trimAscii(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toCtorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__12;
static lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__1;
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instOrd;
LEAN_EXPORT lean_object* l_Nat_cast___at___00Lake_instReprSemVerCore_repr_spec__0(lean_object*);
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToString;
LEAN_EXPORT uint8_t l_Lake_instInhabitedComparatorOp;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__7;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toString___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instLT;
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___boxed(lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4_spec__4(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_nat_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8;
static lean_object* l_Lake_ToolchainVer_ofString___closed__1;
static lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMax___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instMin___lam__0___boxed(lean_object*, lean_object*);
lean_object* lean_string_length(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___boxed(lean_object*, lean_object*);
uint8_t l_String_Slice_beq(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0;
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr(lean_object*, lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__2;
LEAN_EXPORT uint8_t l_Lake_instDecidableEqToolchainVer_decEq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore___lam__0___boxed(lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instDecodeVersionStdVer;
LEAN_EXPORT lean_object* l_Lake_instReprComparatorOp_repr(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__10;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__11;
static lean_object* l_Lake_ToolchainVer_instCoeLeanVer___closed__0;
static lean_object* l_Lake_ComparatorOp_instToString___closed__0;
uint32_t lean_string_utf8_get_fast(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instFromJson;
static lean_object* l_Lake_ToolchainVer_instToString___closed__0;
lean_object* l_Lean_Json_getStr_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instToString;
lean_object* l_Nat_reprFast(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__8;
static lean_object* l_Lake_instReprComparatorOp___closed__0;
lean_object* l_Lean_Data_Trie_insert___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__9;
static lean_object* l_Lake_instReprComparatorOp_repr___closed__11;
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0(lean_object*, lean_object*);
size_t lean_usize_of_nat(lean_object*);
uint8_t l_Lake_instOrdDate_ord(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr(lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(lean_object*, lean_object*);
uint8_t lean_string_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other___override(lean_object*);
uint8_t l_String_decLE(lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__8;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0;
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instMax___lam__0(lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__4;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMax___lam__0___boxed(lean_object*, lean_object*);
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLt___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__13;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instInhabitedStdVer;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__6;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMin;
lean_object* l_Lake_instReprDate_repr___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_toString(lean_object*);
LEAN_EXPORT uint8_t l_Lake_instDecidableEqSemVerCore(lean_object*, lean_object*);
uint8_t lean_uint32_dec_le(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l_Lake_normalizeToolchain(lean_object*);
static lean_object* l_Lake_VerComparator_instToString___closed__0;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__8;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorIdx___boxed(lean_object*);
lean_object* l_Array_empty(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instFromJson___lam__0(lean_object*);
static lean_object* l_Lake_ToolchainVer_release___override___closed__0;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__1;
static lean_object* l_Lake_instReprStdVer___closed__0;
lean_object* l_Lake_Date_toString(lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerRange_test___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofString(lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__16;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_ofSemVerCore(lean_object*);
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__0;
static lean_object* l_Lake_toolchainFileName___closed__0;
LEAN_EXPORT lean_object* l_Lake_VerComparator_parse(lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__1;
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLe(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instToJson___lam__0(lean_object*);
static lean_object* l_Lake_instReprVerRange___closed__0;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instFromJson___lam__0(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents(lean_object*, lean_object*);
lean_object* lean_array_to_list(lean_object*);
static lean_object* l_Lake_ToolchainVer_nightly___override___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_none_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLt(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instInhabitedSemVerCore;
static lean_object* l_Lake_VerComparator_parse___closed__0;
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instToJson;
LEAN_EXPORT lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr___boxed(lean_object*, lean_object*);
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_parse(lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__0;
LEAN_EXPORT uint8_t l_Lake_instDecidableEqToolchainVer(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerComparator_toString(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM(lean_object*, lean_object*);
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__6;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__4;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0;
static lean_object* l_Lake_instReprComparatorOp_repr___closed__3;
LEAN_EXPORT lean_object* l_Lake_StdVer_instMin___lam__0(lean_object*, lean_object*);
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___redArg(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___redArg(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0;
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1(lean_object*, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0(lean_object*);
static lean_object* l_Lake_instInhabitedVerRange_default___closed__1;
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_none_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore;
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_blt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instLT;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__13;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprComparatorOp;
static lean_object* l_Lake_instReprComparatorOp_repr___closed__9;
lean_object* l_String_Slice_Pos_get_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerRange_instToString;
static lean_object* l_Lake_VerComparator_wild___closed__1;
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMin___lam__0(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__17;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_VerComparator_instToString;
LEAN_EXPORT lean_object* l_Lake_VerRange_instToString___lam__0(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__2;
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__10;
lean_object* l_String_Slice_pos_x21(lean_object*, lean_object*);
static lean_object* l_Lake_StdVer_instToString___closed__0;
LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_ToolchainVer_defaultOrigin___closed__0;
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr___redArg(lean_object*);
static lean_object* l_Lake_StdVer_instOrd___closed__0;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1;
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_isWildVer___boxed(lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx___boxed(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6;
static lean_object* l_Lake_instReprComparatorOp_repr___closed__6;
LEAN_EXPORT lean_object* l_Lake_instDecidableEqSemVerCore___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds(lean_object*);
lean_object* l_IO_FS_readFile(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerRange;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__6;
LEAN_EXPORT uint8_t l_Lake_StdVer_compare(lean_object*, lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__12;
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Data_Trie_matchPrefix___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instDecodeVersionToolchainVer;
lean_object* lean_array_fget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr___override(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer_decEq___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_ToolchainVer_pr___override___closed__0;
uint8_t lean_string_is_valid_pos(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instToString;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_nat_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_parse(lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__2;
static lean_object* l_Lake_VerComparator_wild___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_appendRange(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instInhabitedStdVer_default;
LEAN_EXPORT lean_object* l_Lake_instDecodeVersionSemVerCore;
static lean_object* l_Lake_instOrdSemVerCore___closed__0;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg(uint8_t, uint8_t);
static lean_object* l_Lake_instDecodeVersionStdVer___closed__0;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson___lam__0(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lake_instInhabitedSemVerCore_default___closed__0;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toCtorIdx(uint8_t);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__6;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_VerRange_test(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr_elim___redArg(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0;
LEAN_EXPORT lean_object* l_Lake_instDecidableEqSemVerCore_decEq___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_VerRange_parse___closed__0;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorIdx(lean_object*);
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ofString_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instMax;
static lean_object* l_Lake_StdVer_parse___closed__0;
lean_object* l_String_Slice_toString(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___redArg(lean_object*);
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__1;
static lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ble___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer_decEq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr___boxed(lean_object*, lean_object*);
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs(lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___redArg(lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___boxed(lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
lean_object* l_Lake_Date_ofString_x3f(lean_object*);
lean_object* l_Bool_repr___redArg(uint8_t);
LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__3;
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override(lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_compare___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__10;
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4;
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg(lean_object*);
static lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lake_VerRange_instToString___lam__0___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Lake_instInhabitedComparatorOp_default;
uint8_t lean_string_memcmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprToolchainVer_repr___closed__10;
LEAN_EXPORT lean_object* l_Lake_VerComparator_wild;
static lean_object* l_Lake_instDecodeVersionSemVerCore___closed__0;
static lean_object* l_Lake_instReprComparatorOp_repr___closed__0;
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__3;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__8;
LEAN_EXPORT uint8_t l_Lake_VerComparator_test(lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_nextn(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer_repr(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__14;
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore__1;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instMax___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_StdVer_instLT;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instInhabitedVerRange_default;
static lean_object* l_Lake_instInhabitedVerRange_default___closed__0;
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1;
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofFile_x3f___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_prOrigin;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComparator_parseM(lean_object*, lean_object*);
static lean_object* l_Lake_ToolchainVer_ofString___closed__3;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_blt___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg(lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l_Lake_StdVer_toString___closed__0;
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly___override(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer;
LEAN_EXPORT lean_object* l_Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_wild_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_SemVerCore_toString___closed__0;
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__7;
static lean_object* l_Lake_instReprToolchainVer_repr___closed__3;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___redArg___boxed(lean_object*);
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__3;
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__9;
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMax;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLe___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_StdVer_instFromJson;
lean_object* lean_array_get_size(lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_instToString;
LEAN_EXPORT lean_object* l_Lake_VerRange_ofClauses(lean_object*);
static lean_object* l_Lake_StdVer_instCoeSemVerCore__1___closed__0;
LEAN_EXPORT lean_object* l_Lake_instInhabitedSemVerCore_default;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx(lean_object*);
static lean_object* l_Lake_instReprVerRange_repr___redArg___closed__4;
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instCoeLeanVer;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0___boxed(lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l_Lake_SemVerCore_parse___closed__0;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f___boxed(lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1;
static lean_object* l_Lake_instReprVerComparator_repr___redArg___closed__9;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprComparatorOp_repr___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1;
LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer_decEq___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2;
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instLE;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ofString_x3f___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instToJson___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2;
LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer_repr___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1;
static lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0;
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0(lean_object*, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_ToolchainVer_ofString___closed__2;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__4;
static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5;
static lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9;
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofFile_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_string_utf8_byte_size(x_1);
x_9 = lean_nat_dec_eq(x_4, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
uint32_t x_10; uint8_t x_11; uint8_t x_18; uint8_t x_24; uint32_t x_30; uint8_t x_31; 
x_10 = lean_string_utf8_get_fast(x_1, x_4);
x_30 = 46;
x_31 = lean_uint32_dec_eq(x_10, x_30);
if (x_31 == 0)
{
uint32_t x_32; uint8_t x_33; 
x_32 = 65;
x_33 = lean_uint32_dec_le(x_32, x_10);
if (x_33 == 0)
{
x_24 = x_33;
goto block_29;
}
else
{
uint32_t x_34; uint8_t x_35; 
x_34 = 90;
x_35 = lean_uint32_dec_le(x_10, x_34);
x_24 = x_35;
goto block_29;
}
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
lean_inc(x_4);
lean_inc_ref(x_1);
x_36 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_36, 0, x_1);
lean_ctor_set(x_36, 1, x_3);
lean_ctor_set(x_36, 2, x_4);
x_37 = lean_array_push(x_2, x_36);
x_38 = lean_string_utf8_next_fast(x_1, x_4);
lean_dec(x_4);
lean_inc(x_38);
x_2 = x_37;
x_3 = x_38;
x_4 = x_38;
goto _start;
}
block_17:
{
if (x_11 == 0)
{
uint32_t x_12; uint8_t x_13; 
x_12 = 42;
x_13 = lean_uint32_dec_eq(x_10, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
lean_inc(x_4);
x_14 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_14, 0, x_1);
lean_ctor_set(x_14, 1, x_3);
lean_ctor_set(x_14, 2, x_4);
x_15 = lean_array_push(x_2, x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_4);
return x_16;
}
else
{
goto block_7;
}
}
else
{
goto block_7;
}
}
block_23:
{
if (x_18 == 0)
{
uint32_t x_19; uint8_t x_20; 
x_19 = 48;
x_20 = lean_uint32_dec_le(x_19, x_10);
if (x_20 == 0)
{
x_11 = x_20;
goto block_17;
}
else
{
uint32_t x_21; uint8_t x_22; 
x_21 = 57;
x_22 = lean_uint32_dec_le(x_10, x_21);
x_11 = x_22;
goto block_17;
}
}
else
{
goto block_7;
}
}
block_29:
{
if (x_24 == 0)
{
uint32_t x_25; uint8_t x_26; 
x_25 = 97;
x_26 = lean_uint32_dec_le(x_25, x_10);
if (x_26 == 0)
{
x_18 = x_26;
goto block_23;
}
else
{
uint32_t x_27; uint8_t x_28; 
x_27 = 122;
x_28 = lean_uint32_dec_le(x_10, x_27);
x_18 = x_28;
goto block_23;
}
}
else
{
goto block_7;
}
}
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_inc(x_4);
x_40 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_40, 0, x_1);
lean_ctor_set(x_40, 1, x_3);
lean_ctor_set(x_40, 2, x_4);
x_41 = lean_array_push(x_2, x_40);
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set(x_42, 1, x_4);
return x_42;
}
block_7:
{
lean_object* x_5; 
x_5 = lean_string_utf8_next_fast(x_1, x_4);
lean_dec(x_4);
x_4 = x_5;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponents(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
lean_inc(x_2);
x_4 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_3, x_2, x_2);
return x_4;
}
}
LEAN_EXPORT uint8_t l___private_Lake_Util_Version_0__Lake_isWildVer(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_nat_sub(x_4, x_3);
x_7 = lean_nat_dec_eq(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_string_utf8_next_fast(x_2, x_3);
x_9 = lean_nat_sub(x_8, x_3);
lean_dec(x_8);
x_10 = lean_nat_dec_eq(x_9, x_6);
lean_dec(x_6);
lean_dec(x_9);
if (x_10 == 0)
{
return x_10;
}
else
{
uint32_t x_11; uint8_t x_12; uint32_t x_16; uint8_t x_17; 
x_11 = lean_string_utf8_get_fast(x_2, x_3);
x_16 = 120;
x_17 = lean_uint32_dec_eq(x_11, x_16);
if (x_17 == 0)
{
uint32_t x_18; uint8_t x_19; 
x_18 = 88;
x_19 = lean_uint32_dec_eq(x_11, x_18);
x_12 = x_19;
goto block_15;
}
else
{
x_12 = x_17;
goto block_15;
}
block_15:
{
if (x_12 == 0)
{
uint32_t x_13; uint8_t x_14; 
x_13 = 42;
x_14 = lean_uint32_dec_eq(x_11, x_13);
return x_14;
}
else
{
return x_12;
}
}
}
}
else
{
uint8_t x_20; 
lean_dec(x_6);
x_20 = 0;
return x_20;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_isWildVer___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l___private_Lake_Util_Version_0__Lake_isWildVer(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid ", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" version: expected numeral, got '", 33, 33);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_String_Slice_toNat_x3f(x_3);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_dec(x_5);
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_ctor_get(x_3, 1);
x_10 = lean_ctor_get(x_3, 2);
x_11 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0;
x_12 = lean_string_append(x_11, x_2);
x_13 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1;
x_14 = lean_string_append(x_12, x_13);
x_15 = lean_string_utf8_extract(x_8, x_9, x_10);
x_16 = lean_string_append(x_14, x_15);
lean_dec_ref(x_15);
x_17 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_18 = lean_string_append(x_16, x_17);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_4);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_String_Slice_toNat_x3f(x_2);
if (lean_obj_tag(x_4) == 1)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec_ref(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_3);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_4);
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_ctor_get(x_2, 1);
x_9 = lean_ctor_get(x_2, 2);
x_10 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0;
x_11 = lean_string_append(x_10, x_1);
x_12 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1;
x_13 = lean_string_append(x_11, x_12);
x_14 = lean_string_utf8_extract(x_7, x_8, x_9);
x_15 = lean_string_append(x_13, x_14);
lean_dec_ref(x_14);
x_16 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_17 = lean_string_append(x_15, x_16);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_3);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_parseVerNat(x_1, x_2, x_3, x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerNat___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lake_Util_Version_0__Lake_parseVerNat___redArg(x_1, x_2, x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorIdx(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorIdx___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorIdx(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 2)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_apply_1(x_2, x_3);
return x_4;
}
else
{
lean_dec(x_1);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_none_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_none_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_wild_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_wild_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_nat_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComponent_nat_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_VerComponent_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" version: expected numeral or wildcard, got '", 45, 45);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = l___private_Lake_Util_Version_0__Lake_isWildVer(x_4);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = l_String_Slice_toNat_x3f(x_4);
if (lean_obj_tag(x_6) == 1)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; 
lean_ctor_set_tag(x_6, 2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_3);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
x_10 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_10, 0, x_9);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_3);
return x_11;
}
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec(x_6);
x_12 = lean_ctor_get(x_4, 0);
x_13 = lean_ctor_get(x_4, 1);
x_14 = lean_ctor_get(x_4, 2);
x_15 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0;
x_16 = lean_string_append(x_15, x_1);
x_17 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0;
x_18 = lean_string_append(x_16, x_17);
x_19 = lean_string_utf8_extract(x_12, x_13, x_14);
x_20 = lean_string_append(x_18, x_19);
lean_dec_ref(x_19);
x_21 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_22 = lean_string_append(x_20, x_21);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_3);
return x_23;
}
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_box(1);
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_3);
return x_25;
}
}
else
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_box(0);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_3);
return x_27;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_parseVerComponent(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(x_1, x_2, x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_7; uint8_t x_8; 
x_7 = lean_string_utf8_byte_size(x_1);
x_8 = lean_nat_dec_eq(x_2, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint32_t x_9; uint8_t x_10; uint32_t x_16; uint8_t x_17; 
x_9 = lean_string_utf8_get_fast(x_1, x_2);
x_16 = 32;
x_17 = lean_uint32_dec_eq(x_9, x_16);
if (x_17 == 0)
{
uint32_t x_18; uint8_t x_19; 
x_18 = 9;
x_19 = lean_uint32_dec_eq(x_9, x_18);
x_10 = x_19;
goto block_15;
}
else
{
x_10 = x_17;
goto block_15;
}
block_15:
{
if (x_10 == 0)
{
uint32_t x_11; uint8_t x_12; 
x_11 = 13;
x_12 = lean_uint32_dec_eq(x_9, x_11);
if (x_12 == 0)
{
uint32_t x_13; uint8_t x_14; 
x_13 = 10;
x_14 = lean_uint32_dec_eq(x_9, x_13);
x_3 = x_14;
goto block_6;
}
else
{
x_3 = x_12;
goto block_6;
}
}
else
{
return x_2;
}
}
}
else
{
return x_2;
}
block_6:
{
if (x_3 == 0)
{
lean_object* x_4; 
x_4 = lean_string_utf8_next_fast(x_1, x_2);
lean_dec(x_2);
x_2 = x_4;
goto _start;
}
else
{
return x_2;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = lean_nat_dec_eq(x_2, x_3);
lean_dec(x_3);
if (x_4 == 0)
{
uint32_t x_5; uint32_t x_6; uint8_t x_7; 
x_5 = lean_string_utf8_get_fast(x_1, x_2);
x_6 = 45;
x_7 = lean_uint32_dec_eq(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_2);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_string_utf8_next_fast(x_1, x_2);
lean_dec(x_2);
lean_inc(x_10);
x_11 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f_nextUntilWhitespace(x_1, x_10);
x_12 = lean_string_utf8_extract(x_1, x_10, x_11);
lean_dec(x_10);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_11);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_box(0);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_2);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid version: '-' suffix cannot be empty", 43, 43);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f(x_1, x_2);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
if (lean_obj_tag(x_4) == 1)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_6 = lean_ctor_get(x_3, 0);
lean_dec(x_6);
x_7 = lean_ctor_get(x_4, 0);
lean_inc(x_7);
lean_dec_ref(x_4);
x_8 = lean_string_utf8_byte_size(x_7);
x_9 = lean_unsigned_to_nat(0u);
x_10 = lean_nat_dec_eq(x_8, x_9);
lean_dec(x_8);
if (x_10 == 0)
{
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_11; 
lean_dec(x_7);
x_11 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0;
lean_ctor_set_tag(x_3, 1);
lean_ctor_set(x_3, 0, x_11);
return x_3;
}
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_3, 1);
lean_inc(x_12);
lean_dec(x_3);
x_13 = lean_ctor_get(x_4, 0);
lean_inc(x_13);
lean_dec_ref(x_4);
x_14 = lean_string_utf8_byte_size(x_13);
x_15 = lean_unsigned_to_nat(0u);
x_16 = lean_nat_dec_eq(x_14, x_15);
lean_dec(x_14);
if (x_16 == 0)
{
lean_object* x_17; 
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_13);
lean_ctor_set(x_17, 1, x_12);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; 
lean_dec(x_13);
x_18 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0;
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_12);
return x_19;
}
}
}
else
{
uint8_t x_20; 
lean_dec(x_4);
x_20 = !lean_is_exclusive(x_3);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_3, 0);
lean_dec(x_21);
x_22 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
lean_ctor_set(x_3, 0, x_22);
return x_3;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_3, 1);
lean_inc(x_23);
lean_dec(x_3);
x_24 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_23);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unexpected characters at end of version: ", 41, 41);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
lean_inc_ref(x_1);
x_5 = lean_apply_2(x_2, x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = lean_nat_dec_eq(x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
lean_dec(x_6);
x_9 = lean_string_utf8_extract(x_1, x_7, x_4);
lean_dec(x_7);
lean_dec_ref(x_1);
x_10 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0;
x_11 = lean_string_append(x_10, x_9);
lean_dec_ref(x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
lean_dec_ref(x_1);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec_ref(x_1);
x_14 = lean_ctor_get(x_5, 0);
lean_inc(x_14);
lean_dec_ref(x_5);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_runVerParse(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_instInhabitedSemVerCore_default___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instInhabitedSemVerCore_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedSemVerCore_default___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedSemVerCore() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedSemVerCore_default;
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" := ", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("major", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__2;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_2 = l_Lake_instReprSemVerCore_repr___redArg___closed__3;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(9u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("minor", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__10;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("patch", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__12;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("{ ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__0;
x_2 = lean_string_length(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__15;
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" }", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore_repr___redArg___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__14;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_6 = l_Lake_instReprSemVerCore_repr___redArg___closed__6;
x_7 = l_Lake_instReprSemVerCore_repr___redArg___closed__7;
x_8 = l_Nat_reprFast(x_2);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
x_11 = 0;
x_12 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11);
x_13 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_15 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_box(1);
x_17 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lake_instReprSemVerCore_repr___redArg___closed__11;
x_19 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_5);
x_21 = l_Nat_reprFast(x_3);
x_22 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_22, 0, x_21);
x_23 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_23, 0, x_7);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_11);
x_25 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_25, 0, x_20);
lean_ctor_set(x_25, 1, x_24);
x_26 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_14);
x_27 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_16);
x_28 = l_Lake_instReprSemVerCore_repr___redArg___closed__13;
x_29 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_5);
x_31 = l_Nat_reprFast(x_4);
x_32 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_32, 0, x_31);
x_33 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_33, 0, x_7);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_11);
x_35 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_35, 0, x_30);
lean_ctor_set(x_35, 1, x_34);
x_36 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_37 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_38 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_35);
x_39 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_40 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
x_41 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_41, 0, x_36);
lean_ctor_set(x_41, 1, x_40);
x_42 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_11);
return x_42;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprSemVerCore_repr___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Nat_cast___at___00Lake_instReprSemVerCore_repr_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprSemVerCore_repr(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprSemVerCore_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprSemVerCore() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprSemVerCore___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqSemVerCore_decEq(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_1, 2);
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_ctor_get(x_2, 2);
x_9 = lean_nat_dec_eq(x_3, x_6);
if (x_9 == 0)
{
return x_9;
}
else
{
uint8_t x_10; 
x_10 = lean_nat_dec_eq(x_4, x_7);
if (x_10 == 0)
{
return x_10;
}
else
{
uint8_t x_11; 
x_11 = lean_nat_dec_eq(x_5, x_8);
return x_11;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqSemVerCore_decEq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqSemVerCore_decEq(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqSemVerCore(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_instDecidableEqSemVerCore_decEq(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqSemVerCore___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqSemVerCore(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lake_instOrdSemVerCore_ord(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_1, 2);
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_ctor_get(x_2, 2);
x_9 = lean_nat_dec_lt(x_3, x_6);
if (x_9 == 0)
{
uint8_t x_10; 
x_10 = lean_nat_dec_eq(x_3, x_6);
if (x_10 == 0)
{
uint8_t x_11; 
x_11 = 2;
return x_11;
}
else
{
uint8_t x_12; 
x_12 = lean_nat_dec_lt(x_4, x_7);
if (x_12 == 0)
{
uint8_t x_13; 
x_13 = lean_nat_dec_eq(x_4, x_7);
if (x_13 == 0)
{
uint8_t x_14; 
x_14 = 2;
return x_14;
}
else
{
uint8_t x_15; 
x_15 = lean_nat_dec_lt(x_5, x_8);
if (x_15 == 0)
{
uint8_t x_16; 
x_16 = lean_nat_dec_eq(x_5, x_8);
if (x_16 == 0)
{
uint8_t x_17; 
x_17 = 2;
return x_17;
}
else
{
uint8_t x_18; 
x_18 = 1;
return x_18;
}
}
else
{
uint8_t x_19; 
x_19 = 0;
return x_19;
}
}
}
else
{
uint8_t x_20; 
x_20 = 0;
return x_20;
}
}
}
else
{
uint8_t x_21; 
x_21 = 0;
return x_21;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instOrdSemVerCore_ord___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instOrdSemVerCore_ord(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_instOrdSemVerCore___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instOrdSemVerCore_ord___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instOrdSemVerCore() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instOrdSemVerCore___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_SemVerCore_instLT() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lake_SemVerCore_instLE() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMin___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_instOrdSemVerCore_ord(x_1, x_2);
if (x_3 == 2)
{
lean_inc_ref(x_2);
return x_2;
}
else
{
lean_inc_ref(x_1);
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMin___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_SemVerCore_instMin___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_SemVerCore_instMin() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_instMin___lam__0___boxed), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMax___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_instOrdSemVerCore_ord(x_1, x_2);
if (x_3 == 2)
{
lean_inc_ref(x_1);
return x_1;
}
else
{
lean_inc_ref(x_2);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instMax___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_SemVerCore_instMax___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_SemVerCore_instMax() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_instMax___lam__0___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid version core: ", 22, 22);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("incorrect number of components: got ", 36, 36);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", expected 3", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid patch version: expected numeral, got '", 46, 46);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid minor version: expected numeral, got '", 46, 46);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid major version: expected numeral, got '", 46, 46);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
lean_inc(x_2);
x_11 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_10, x_2, x_2);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_11, 1);
x_15 = lean_array_get_size(x_13);
x_16 = lean_unsigned_to_nat(3u);
x_17 = lean_nat_dec_eq(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
lean_free_object(x_11);
lean_dec(x_13);
x_18 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1;
x_19 = l_Nat_reprFast(x_15);
x_20 = lean_string_append(x_18, x_19);
lean_dec_ref(x_19);
x_21 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2;
x_22 = lean_string_append(x_20, x_21);
x_3 = x_22;
x_4 = x_14;
goto block_8;
}
else
{
lean_object* x_23; lean_object* x_24; 
lean_dec(x_15);
x_23 = lean_array_fget_borrowed(x_13, x_9);
x_24 = l_String_Slice_toNat_x3f(x_23);
if (lean_obj_tag(x_24) == 1)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
lean_dec_ref(x_24);
x_26 = lean_unsigned_to_nat(1u);
x_27 = lean_array_fget_borrowed(x_13, x_26);
x_28 = l_String_Slice_toNat_x3f(x_27);
if (lean_obj_tag(x_28) == 1)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_30 = lean_unsigned_to_nat(2u);
x_31 = lean_array_fget(x_13, x_30);
lean_dec(x_13);
x_32 = l_String_Slice_toNat_x3f(x_31);
if (lean_obj_tag(x_32) == 1)
{
lean_object* x_33; lean_object* x_34; 
lean_dec(x_31);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec_ref(x_32);
x_34 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_34, 0, x_25);
lean_ctor_set(x_34, 1, x_29);
lean_ctor_set(x_34, 2, x_33);
lean_ctor_set(x_11, 0, x_34);
return x_11;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_32);
lean_dec(x_29);
lean_dec(x_25);
lean_free_object(x_11);
x_35 = lean_ctor_get(x_31, 0);
lean_inc_ref(x_35);
x_36 = lean_ctor_get(x_31, 1);
lean_inc(x_36);
x_37 = lean_ctor_get(x_31, 2);
lean_inc(x_37);
lean_dec(x_31);
x_38 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_39 = lean_string_utf8_extract(x_35, x_36, x_37);
lean_dec(x_37);
lean_dec(x_36);
lean_dec_ref(x_35);
x_40 = lean_string_append(x_38, x_39);
lean_dec_ref(x_39);
x_41 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_42 = lean_string_append(x_40, x_41);
x_3 = x_42;
x_4 = x_14;
goto block_8;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
lean_dec(x_28);
lean_inc(x_27);
lean_dec(x_25);
lean_free_object(x_11);
lean_dec(x_13);
x_43 = lean_ctor_get(x_27, 0);
lean_inc_ref(x_43);
x_44 = lean_ctor_get(x_27, 1);
lean_inc(x_44);
x_45 = lean_ctor_get(x_27, 2);
lean_inc(x_45);
lean_dec(x_27);
x_46 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_47 = lean_string_utf8_extract(x_43, x_44, x_45);
lean_dec(x_45);
lean_dec(x_44);
lean_dec_ref(x_43);
x_48 = lean_string_append(x_46, x_47);
lean_dec_ref(x_47);
x_49 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_50 = lean_string_append(x_48, x_49);
x_3 = x_50;
x_4 = x_14;
goto block_8;
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
lean_dec(x_24);
lean_inc(x_23);
lean_free_object(x_11);
lean_dec(x_13);
x_51 = lean_ctor_get(x_23, 0);
lean_inc_ref(x_51);
x_52 = lean_ctor_get(x_23, 1);
lean_inc(x_52);
x_53 = lean_ctor_get(x_23, 2);
lean_inc(x_53);
lean_dec(x_23);
x_54 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_55 = lean_string_utf8_extract(x_51, x_52, x_53);
lean_dec(x_53);
lean_dec(x_52);
lean_dec_ref(x_51);
x_56 = lean_string_append(x_54, x_55);
lean_dec_ref(x_55);
x_57 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_58 = lean_string_append(x_56, x_57);
x_3 = x_58;
x_4 = x_14;
goto block_8;
}
}
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_59 = lean_ctor_get(x_11, 0);
x_60 = lean_ctor_get(x_11, 1);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_11);
x_61 = lean_array_get_size(x_59);
x_62 = lean_unsigned_to_nat(3u);
x_63 = lean_nat_dec_eq(x_61, x_62);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
lean_dec(x_59);
x_64 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1;
x_65 = l_Nat_reprFast(x_61);
x_66 = lean_string_append(x_64, x_65);
lean_dec_ref(x_65);
x_67 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2;
x_68 = lean_string_append(x_66, x_67);
x_3 = x_68;
x_4 = x_60;
goto block_8;
}
else
{
lean_object* x_69; lean_object* x_70; 
lean_dec(x_61);
x_69 = lean_array_fget_borrowed(x_59, x_9);
x_70 = l_String_Slice_toNat_x3f(x_69);
if (lean_obj_tag(x_70) == 1)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_71 = lean_ctor_get(x_70, 0);
lean_inc(x_71);
lean_dec_ref(x_70);
x_72 = lean_unsigned_to_nat(1u);
x_73 = lean_array_fget_borrowed(x_59, x_72);
x_74 = l_String_Slice_toNat_x3f(x_73);
if (lean_obj_tag(x_74) == 1)
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_75 = lean_ctor_get(x_74, 0);
lean_inc(x_75);
lean_dec_ref(x_74);
x_76 = lean_unsigned_to_nat(2u);
x_77 = lean_array_fget(x_59, x_76);
lean_dec(x_59);
x_78 = l_String_Slice_toNat_x3f(x_77);
if (lean_obj_tag(x_78) == 1)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
lean_dec(x_77);
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
lean_dec_ref(x_78);
x_80 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_80, 0, x_71);
lean_ctor_set(x_80, 1, x_75);
lean_ctor_set(x_80, 2, x_79);
x_81 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_60);
return x_81;
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
lean_dec(x_78);
lean_dec(x_75);
lean_dec(x_71);
x_82 = lean_ctor_get(x_77, 0);
lean_inc_ref(x_82);
x_83 = lean_ctor_get(x_77, 1);
lean_inc(x_83);
x_84 = lean_ctor_get(x_77, 2);
lean_inc(x_84);
lean_dec(x_77);
x_85 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_86 = lean_string_utf8_extract(x_82, x_83, x_84);
lean_dec(x_84);
lean_dec(x_83);
lean_dec_ref(x_82);
x_87 = lean_string_append(x_85, x_86);
lean_dec_ref(x_86);
x_88 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_89 = lean_string_append(x_87, x_88);
x_3 = x_89;
x_4 = x_60;
goto block_8;
}
}
else
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 
lean_dec(x_74);
lean_inc(x_73);
lean_dec(x_71);
lean_dec(x_59);
x_90 = lean_ctor_get(x_73, 0);
lean_inc_ref(x_90);
x_91 = lean_ctor_get(x_73, 1);
lean_inc(x_91);
x_92 = lean_ctor_get(x_73, 2);
lean_inc(x_92);
lean_dec(x_73);
x_93 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_94 = lean_string_utf8_extract(x_90, x_91, x_92);
lean_dec(x_92);
lean_dec(x_91);
lean_dec_ref(x_90);
x_95 = lean_string_append(x_93, x_94);
lean_dec_ref(x_94);
x_96 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_97 = lean_string_append(x_95, x_96);
x_3 = x_97;
x_4 = x_60;
goto block_8;
}
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
lean_dec(x_70);
lean_inc(x_69);
lean_dec(x_59);
x_98 = lean_ctor_get(x_69, 0);
lean_inc_ref(x_98);
x_99 = lean_ctor_get(x_69, 1);
lean_inc(x_99);
x_100 = lean_ctor_get(x_69, 2);
lean_inc(x_100);
lean_dec(x_69);
x_101 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_102 = lean_string_utf8_extract(x_98, x_99, x_100);
lean_dec(x_100);
lean_dec(x_99);
lean_dec_ref(x_98);
x_103 = lean_string_append(x_101, x_102);
lean_dec_ref(x_102);
x_104 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_105 = lean_string_append(x_103, x_104);
x_3 = x_105;
x_4 = x_60;
goto block_8;
}
}
}
block_8:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0;
x_6 = lean_string_append(x_5, x_3);
lean_dec_ref(x_3);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_4);
return x_7;
}
}
}
static lean_object* _init_l_Lake_SemVerCore_parse___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_parse(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_SemVerCore_parse___closed__0;
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_string_utf8_byte_size(x_1);
x_5 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_SemVerCore_toString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_toString(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Nat_reprFast(x_2);
x_6 = l_Lake_SemVerCore_toString___closed__0;
x_7 = lean_string_append(x_5, x_6);
x_8 = l_Nat_reprFast(x_3);
x_9 = lean_string_append(x_7, x_8);
lean_dec_ref(x_8);
x_10 = lean_string_append(x_9, x_6);
x_11 = l_Nat_reprFast(x_4);
x_12 = lean_string_append(x_10, x_11);
lean_dec_ref(x_11);
return x_12;
}
}
static lean_object* _init_l_Lake_SemVerCore_instToString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_toString), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_SemVerCore_instToString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_SemVerCore_instToString___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instToJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lake_SemVerCore_toString(x_1);
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_SemVerCore_instToJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_instToJson___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_SemVerCore_instFromJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Json_getStr_x3f(x_1);
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = l_Lake_SemVerCore_parse___closed__0;
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_string_utf8_byte_size(x_6);
x_10 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_6, x_7, x_8, x_9);
lean_dec(x_9);
return x_10;
}
}
}
static lean_object* _init_l_Lake_SemVerCore_instFromJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_instFromJson___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedStdVer_default___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_2 = l_Lake_instInhabitedSemVerCore_default;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instInhabitedStdVer_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedStdVer_default___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedStdVer() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedStdVer_default;
return x_1;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toSemVerCore", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprStdVer_repr___redArg___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprStdVer_repr___redArg___closed__1;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_2 = l_Lake_instReprStdVer_repr___redArg___closed__2;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(16u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("specialDescr", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprStdVer_repr___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprStdVer_repr___redArg___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___redArg(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_6 = l_Lake_instReprStdVer_repr___redArg___closed__3;
x_7 = l_Lake_instReprStdVer_repr___redArg___closed__4;
x_8 = l_Lake_instReprSemVerCore_repr___redArg(x_3);
lean_ctor_set_tag(x_1, 4);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_7);
x_9 = 0;
x_10 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_9);
x_11 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_11, 0, x_6);
lean_ctor_set(x_11, 1, x_10);
x_12 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_13 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_box(1);
x_15 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = l_Lake_instReprStdVer_repr___redArg___closed__6;
x_17 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_5);
x_19 = l_String_quote(x_4);
x_20 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_21, 0, x_7);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set_uint8(x_22, sizeof(void*)*1, x_9);
x_23 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_23, 0, x_18);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_25 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_26 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_23);
x_27 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_28 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_29, 0, x_24);
lean_ctor_set(x_29, 1, x_28);
x_30 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_9);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_31 = lean_ctor_get(x_1, 0);
x_32 = lean_ctor_get(x_1, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_1);
x_33 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_34 = l_Lake_instReprStdVer_repr___redArg___closed__3;
x_35 = l_Lake_instReprStdVer_repr___redArg___closed__4;
x_36 = l_Lake_instReprSemVerCore_repr___redArg(x_31);
x_37 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_36);
x_38 = 0;
x_39 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_38);
x_40 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_40, 0, x_34);
lean_ctor_set(x_40, 1, x_39);
x_41 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_42 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set(x_42, 1, x_41);
x_43 = lean_box(1);
x_44 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lake_instReprStdVer_repr___redArg___closed__6;
x_46 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
x_47 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_47, 0, x_46);
lean_ctor_set(x_47, 1, x_33);
x_48 = l_String_quote(x_32);
x_49 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_49, 0, x_48);
x_50 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_50, 0, x_35);
lean_ctor_set(x_50, 1, x_49);
x_51 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set_uint8(x_51, sizeof(void*)*1, x_38);
x_52 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_52, 0, x_47);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_54 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_55 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_55, 0, x_54);
lean_ctor_set(x_55, 1, x_52);
x_56 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_57 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_57, 0, x_55);
lean_ctor_set(x_57, 1, x_56);
x_58 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_58, 0, x_53);
lean_ctor_set(x_58, 1, x_57);
x_59 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set_uint8(x_59, sizeof(void*)*1, x_38);
return x_59;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprStdVer_repr___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprStdVer_repr(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprStdVer___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprStdVer_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprStdVer() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprStdVer___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer_decEq(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
x_7 = l_Lake_instDecidableEqSemVerCore_decEq(x_3, x_5);
if (x_7 == 0)
{
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_string_dec_eq(x_4, x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer_decEq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqStdVer_decEq(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_instDecidableEqStdVer_decEq(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqStdVer(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instCoeSemVerCore___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_StdVer_instCoeSemVerCore___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_StdVer_instCoeSemVerCore() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_instCoeSemVerCore___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_ofSemVerCore(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_StdVer_instCoeSemVerCore__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_ofSemVerCore), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_StdVer_instCoeSemVerCore__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_StdVer_instCoeSemVerCore__1___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_StdVer_compare(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
x_7 = l_Lake_instOrdSemVerCore_ord(x_3, x_5);
if (x_7 == 1)
{
lean_object* x_8; uint8_t x_9; 
x_8 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_9 = lean_string_dec_eq(x_4, x_8);
if (x_9 == 0)
{
uint8_t x_10; 
x_10 = lean_string_dec_eq(x_6, x_8);
if (x_10 == 0)
{
uint8_t x_11; 
x_11 = lean_string_dec_lt(x_4, x_6);
if (x_11 == 0)
{
uint8_t x_12; 
x_12 = lean_string_dec_eq(x_4, x_6);
if (x_12 == 0)
{
uint8_t x_13; 
x_13 = 2;
return x_13;
}
else
{
return x_7;
}
}
else
{
uint8_t x_14; 
x_14 = 0;
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = 0;
return x_15;
}
}
else
{
uint8_t x_16; 
x_16 = lean_string_dec_eq(x_6, x_8);
if (x_16 == 0)
{
uint8_t x_17; 
x_17 = 2;
return x_17;
}
else
{
return x_7;
}
}
}
else
{
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_compare___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_StdVer_compare(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_StdVer_instOrd___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_compare___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_StdVer_instOrd() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_StdVer_instOrd___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_StdVer_instLT() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lake_StdVer_instLE() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instMin___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_StdVer_compare(x_1, x_2);
if (x_3 == 2)
{
lean_inc_ref(x_2);
return x_2;
}
else
{
lean_inc_ref(x_1);
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instMin___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_StdVer_instMin___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_StdVer_instMin() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_instMin___lam__0___boxed), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instMax___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_StdVer_compare(x_1, x_2);
if (x_3 == 2)
{
lean_inc_ref(x_1);
return x_1;
}
else
{
lean_inc_ref(x_2);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instMax___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_StdVer_instMax___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_StdVer_instMax() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_instMax___lam__0___boxed), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_parseM(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
lean_inc_ref(x_1);
x_3 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec_ref(x_3);
x_6 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_5);
lean_dec_ref(x_1);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_4);
lean_ctor_set(x_9, 1, x_8);
lean_ctor_set(x_6, 0, x_9);
return x_6;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_6, 0);
x_11 = lean_ctor_get(x_6, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_6);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_4);
lean_ctor_set(x_12, 1, x_10);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
return x_13;
}
}
else
{
uint8_t x_14; 
lean_dec(x_4);
x_14 = !lean_is_exclusive(x_6);
if (x_14 == 0)
{
return x_6;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_6, 0);
x_16 = lean_ctor_get(x_6, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_6);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
return x_17;
}
}
}
else
{
uint8_t x_18; 
lean_dec_ref(x_1);
x_18 = !lean_is_exclusive(x_3);
if (x_18 == 0)
{
return x_3;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_3, 0);
x_20 = lean_ctor_get(x_3, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_3);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
}
static lean_object* _init_l_Lake_StdVer_parse___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_parseM), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_parse(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_StdVer_parse___closed__0;
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_string_utf8_byte_size(x_1);
x_5 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_StdVer_toString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_toString(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = lean_string_utf8_byte_size(x_3);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_nat_dec_eq(x_4, x_5);
lean_dec(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = l_Lake_SemVerCore_toString(x_2);
x_8 = l_Lake_StdVer_toString___closed__0;
x_9 = lean_string_append(x_7, x_8);
x_10 = lean_string_append(x_9, x_3);
lean_dec_ref(x_3);
return x_10;
}
else
{
lean_object* x_11; 
lean_dec_ref(x_3);
x_11 = l_Lake_SemVerCore_toString(x_2);
return x_11;
}
}
}
static lean_object* _init_l_Lake_StdVer_instToString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_toString), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_StdVer_instToString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_StdVer_instToString___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instToJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lake_StdVer_toString(x_1);
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_StdVer_instToJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_instToJson___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_StdVer_instFromJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Json_getStr_x3f(x_1);
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = l_Lake_StdVer_parse___closed__0;
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_string_utf8_byte_size(x_6);
x_10 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_6, x_7, x_8, x_9);
lean_dec(x_9);
return x_10;
}
}
}
static lean_object* _init_l_Lake_StdVer_instFromJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_instFromJson___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_toolchainFileName___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("lean-toolchain", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lake_toolchainFileName() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_toolchainFileName___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanprover/lean4", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ToolchainVer_defaultOrigin___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_prOrigin___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases", 28, 28);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_prOrigin() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ToolchainVer_prOrigin___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
case 2:
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
default: 
{
lean_object* x_5; 
x_5 = lean_unsigned_to_nat(3u);
return x_5;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ToolchainVer_ctorIdx(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 2)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = lean_apply_1(x_2, x_3);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_ToolchainVer_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_ToolchainVer_ctorElim(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_ToolchainVer_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_ToolchainVer_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_ToolchainVer_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_ToolchainVer_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
lean_object* x_7; lean_object* x_8; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_7 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_7);
lean_dec_ref(x_2);
x_8 = lean_apply_1(x_3, x_7);
return x_8;
}
case 1:
{
lean_object* x_9; lean_object* x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
x_9 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_9);
lean_dec_ref(x_2);
x_10 = lean_apply_1(x_4, x_9);
return x_10;
}
case 2:
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
x_11 = lean_ctor_get(x_2, 1);
lean_inc(x_11);
lean_dec_ref(x_2);
x_12 = lean_apply_1(x_5, x_11);
return x_12;
}
default: 
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_13 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_13);
lean_dec_ref(x_2);
x_14 = lean_apply_1(x_6, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
case 1:
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
x_8 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_8);
lean_dec_ref(x_1);
x_9 = lean_apply_1(x_3, x_8);
return x_9;
}
case 2:
{
lean_object* x_10; lean_object* x_11; 
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_dec_ref(x_1);
x_11 = lean_apply_1(x_4, x_10);
return x_11;
}
default: 
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_12 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_12);
lean_dec_ref(x_1);
x_13 = lean_apply_1(x_5, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other___override(lean_object* x_1) {
_start:
{
lean_object* x_2; 
lean_inc_ref(x_1);
x_2 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_ToolchainVer_nightly___override___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanprover/lean4:nightly-", 25, 25);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly___override(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_ToolchainVer_nightly___override___closed__0;
lean_inc_ref(x_1);
x_3 = l_Lake_Date_toString(x_1);
x_4 = lean_string_append(x_2, x_3);
lean_dec_ref(x_3);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_1);
return x_5;
}
}
static lean_object* _init_l_Lake_ToolchainVer_pr___override___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases:pr-release-", 40, 40);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr___override(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_ToolchainVer_pr___override___closed__0;
lean_inc(x_1);
x_3 = l_Nat_reprFast(x_1);
x_4 = lean_string_append(x_2, x_3);
lean_dec_ref(x_3);
x_5 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_1);
return x_5;
}
}
static lean_object* _init_l_Lake_ToolchainVer_release___override___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanprover/lean4:v", 18, 18);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release___override(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_ToolchainVer_release___override___closed__0;
lean_inc_ref(x_1);
x_3 = l_Lake_StdVer_toString(x_1);
x_4 = lean_string_append(x_2, x_3);
lean_dec_ref(x_3);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ToolchainVer_toString___override(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ToolchainVer.release", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprToolchainVer_repr___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lake_instReprToolchainVer_repr___closed__1;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ToolchainVer.nightly", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprToolchainVer_repr___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lake_instReprToolchainVer_repr___closed__6;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ToolchainVer.pr", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprToolchainVer_repr___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lake_instReprToolchainVer_repr___closed__9;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ToolchainVer.other", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprToolchainVer_repr___closed__11;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lake_instReprToolchainVer_repr___closed__12;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer_repr(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_14; uint8_t x_15; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_4 = x_1;
} else {
 lean_dec_ref(x_1);
 x_4 = lean_box(0);
}
x_14 = lean_unsigned_to_nat(1024u);
x_15 = lean_nat_dec_le(x_14, x_2);
if (x_15 == 0)
{
lean_object* x_16; 
x_16 = l_Lake_instReprToolchainVer_repr___closed__3;
x_5 = x_16;
goto block_13;
}
else
{
lean_object* x_17; 
x_17 = l_Lake_instReprToolchainVer_repr___closed__4;
x_5 = x_17;
goto block_13;
}
block_13:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Lake_instReprToolchainVer_repr___closed__2;
x_7 = l_Lake_instReprStdVer_repr___redArg(x_3);
if (lean_is_scalar(x_4)) {
 x_8 = lean_alloc_ctor(5, 2, 0);
} else {
 x_8 = x_4;
 lean_ctor_set_tag(x_8, 5);
}
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_9, 0, x_5);
lean_ctor_set(x_9, 1, x_8);
x_10 = 0;
x_11 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_10);
x_12 = l_Repr_addAppParen(x_11, x_2);
return x_12;
}
}
case 1:
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_29; uint8_t x_30; 
x_18 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_18);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_19 = x_1;
} else {
 lean_dec_ref(x_1);
 x_19 = lean_box(0);
}
x_29 = lean_unsigned_to_nat(1024u);
x_30 = lean_nat_dec_le(x_29, x_2);
if (x_30 == 0)
{
lean_object* x_31; 
x_31 = l_Lake_instReprToolchainVer_repr___closed__3;
x_20 = x_31;
goto block_28;
}
else
{
lean_object* x_32; 
x_32 = l_Lake_instReprToolchainVer_repr___closed__4;
x_20 = x_32;
goto block_28;
}
block_28:
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; 
x_21 = l_Lake_instReprToolchainVer_repr___closed__7;
x_22 = l_Lake_instReprDate_repr___redArg(x_18);
if (lean_is_scalar(x_19)) {
 x_23 = lean_alloc_ctor(5, 2, 0);
} else {
 x_23 = x_19;
 lean_ctor_set_tag(x_23, 5);
}
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_24, 0, x_20);
lean_ctor_set(x_24, 1, x_23);
x_25 = 0;
x_26 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_25);
x_27 = l_Repr_addAppParen(x_26, x_2);
return x_27;
}
}
case 2:
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_45; uint8_t x_46; 
x_33 = lean_ctor_get(x_1, 1);
lean_inc(x_33);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_34 = x_1;
} else {
 lean_dec_ref(x_1);
 x_34 = lean_box(0);
}
x_45 = lean_unsigned_to_nat(1024u);
x_46 = lean_nat_dec_le(x_45, x_2);
if (x_46 == 0)
{
lean_object* x_47; 
x_47 = l_Lake_instReprToolchainVer_repr___closed__3;
x_35 = x_47;
goto block_44;
}
else
{
lean_object* x_48; 
x_48 = l_Lake_instReprToolchainVer_repr___closed__4;
x_35 = x_48;
goto block_44;
}
block_44:
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; 
x_36 = l_Lake_instReprToolchainVer_repr___closed__10;
x_37 = l_Nat_reprFast(x_33);
x_38 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_38, 0, x_37);
if (lean_is_scalar(x_34)) {
 x_39 = lean_alloc_ctor(5, 2, 0);
} else {
 x_39 = x_34;
 lean_ctor_set_tag(x_39, 5);
}
lean_ctor_set(x_39, 0, x_36);
lean_ctor_set(x_39, 1, x_38);
x_40 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_40, 0, x_35);
lean_ctor_set(x_40, 1, x_39);
x_41 = 0;
x_42 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41);
x_43 = l_Repr_addAppParen(x_42, x_2);
return x_43;
}
}
default: 
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_61; uint8_t x_62; 
x_49 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_49);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_50 = x_1;
} else {
 lean_dec_ref(x_1);
 x_50 = lean_box(0);
}
x_61 = lean_unsigned_to_nat(1024u);
x_62 = lean_nat_dec_le(x_61, x_2);
if (x_62 == 0)
{
lean_object* x_63; 
x_63 = l_Lake_instReprToolchainVer_repr___closed__3;
x_51 = x_63;
goto block_60;
}
else
{
lean_object* x_64; 
x_64 = l_Lake_instReprToolchainVer_repr___closed__4;
x_51 = x_64;
goto block_60;
}
block_60:
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; 
x_52 = l_Lake_instReprToolchainVer_repr___closed__13;
x_53 = l_String_quote(x_49);
x_54 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_54, 0, x_53);
if (lean_is_scalar(x_50)) {
 x_55 = lean_alloc_ctor(5, 2, 0);
} else {
 x_55 = x_50;
 lean_ctor_set_tag(x_55, 5);
}
lean_ctor_set(x_55, 0, x_52);
lean_ctor_set(x_55, 1, x_54);
x_56 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_56, 0, x_51);
lean_ctor_set(x_56, 1, x_55);
x_57 = 0;
x_58 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_58, 0, x_56);
lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_57);
x_59 = l_Repr_addAppParen(x_58, x_2);
return x_59;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprToolchainVer_repr(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprToolchainVer_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprToolchainVer() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprToolchainVer___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqToolchainVer_decEq(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lake_instDecidableEqStdVer_decEq(x_3, x_4);
return x_5;
}
else
{
uint8_t x_6; 
x_6 = 0;
return x_6;
}
}
case 1:
{
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_1, 1);
x_8 = lean_ctor_get(x_2, 1);
x_9 = l_Lake_instDecidableEqDate_decEq(x_7, x_8);
return x_9;
}
else
{
uint8_t x_10; 
x_10 = 0;
return x_10;
}
}
case 2:
{
if (lean_obj_tag(x_2) == 2)
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_2, 1);
x_13 = lean_nat_dec_eq(x_11, x_12);
return x_13;
}
else
{
uint8_t x_14; 
x_14 = 0;
return x_14;
}
}
default: 
{
if (lean_obj_tag(x_2) == 3)
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_15 = lean_ctor_get(x_1, 1);
x_16 = lean_ctor_get(x_2, 1);
x_17 = lean_string_dec_eq(x_15, x_16);
return x_17;
}
else
{
uint8_t x_18; 
x_18 = 0;
return x_18;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer_decEq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqToolchainVer_decEq(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lake_instDecidableEqToolchainVer(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_instDecidableEqToolchainVer_decEq(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_instDecidableEqToolchainVer(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instCoeLeanVer___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_release___override), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instCoeLeanVer() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ToolchainVer_instCoeLeanVer___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_1, 1);
x_7 = lean_ctor_get(x_1, 2);
x_8 = lean_nat_sub(x_7, x_6);
x_9 = lean_nat_dec_eq(x_3, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
uint32_t x_10; lean_object* x_11; uint32_t x_12; uint8_t x_13; 
x_10 = 58;
x_11 = lean_nat_add(x_6, x_3);
x_12 = lean_string_utf8_get_fast(x_5, x_11);
x_13 = lean_uint32_dec_eq(x_12, x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_3);
x_14 = lean_string_utf8_next_fast(x_5, x_11);
lean_dec(x_11);
x_15 = lean_nat_sub(x_14, x_6);
lean_dec(x_14);
{
lean_object* _tmp_2 = x_15;
lean_object* _tmp_3 = x_2;
x_3 = _tmp_2;
x_4 = _tmp_3;
}
goto _start;
}
else
{
lean_object* x_17; 
lean_dec(x_11);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_3);
return x_17;
}
}
else
{
lean_dec(x_3);
lean_inc(x_4);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg(x_1, x_2, x_5, x_6);
return x_9;
}
}
static lean_object* _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("nightly-", 8, 8);
return x_1;
}
}
static lean_object* _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0;
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1;
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_memcmp(x_1, x_2, x_7, x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_3);
lean_inc_ref(x_1);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_7);
lean_ctor_set(x_10, 2, x_3);
x_11 = l_String_Slice_pos_x21(x_10, x_4);
lean_dec_ref(x_10);
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_1);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set(x_12, 2, x_3);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg(x_1);
return x_3;
}
}
static lean_object* _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_ToolchainVer_defaultOrigin___closed__0;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = l_Lake_ToolchainVer_defaultOrigin___closed__0;
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0;
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_memcmp(x_1, x_2, x_7, x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_3);
lean_inc_ref(x_1);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_7);
lean_ctor_set(x_10, 2, x_3);
x_11 = l_String_Slice_pos_x21(x_10, x_4);
lean_dec_ref(x_10);
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_1);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set(x_12, 2, x_3);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg(x_1);
return x_3;
}
}
static lean_object* _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pr-release-", 11, 11);
return x_1;
}
}
static lean_object* _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0;
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1;
x_5 = lean_nat_dec_le(x_4, x_3);
if (x_5 == 0)
{
lean_object* x_6; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_memcmp(x_1, x_2, x_7, x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec(x_3);
lean_dec_ref(x_1);
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_inc(x_3);
lean_inc_ref(x_1);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_7);
lean_ctor_set(x_10, 2, x_3);
x_11 = l_String_Slice_pos_x21(x_10, x_4);
lean_dec_ref(x_10);
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_1);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set(x_12, 2, x_3);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-nightly", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_ToolchainVer_ofString___closed__0;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("v", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_ToolchainVer_ofString___closed__2;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofString(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_51; lean_object* x_52; lean_object* x_77; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_86 = lean_unsigned_to_nat(0u);
x_87 = lean_string_utf8_byte_size(x_1);
lean_inc(x_87);
lean_inc_ref(x_1);
x_88 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_88, 0, x_1);
lean_ctor_set(x_88, 1, x_86);
lean_ctor_set(x_88, 2, x_87);
x_89 = lean_box(0);
x_90 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg(x_88, x_89, x_86, x_89);
lean_dec_ref(x_88);
if (lean_obj_tag(x_90) == 0)
{
x_77 = x_87;
goto block_85;
}
else
{
lean_object* x_91; 
lean_dec(x_87);
x_91 = lean_ctor_get(x_90, 0);
lean_inc(x_91);
lean_dec_ref(x_90);
x_77 = x_91;
goto block_85;
}
block_50:
{
lean_object* x_6; 
lean_inc_ref(x_4);
x_6 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg(x_4);
if (lean_obj_tag(x_6) == 1)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec_ref(x_4);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
x_8 = l_String_Slice_toString(x_7);
lean_dec(x_7);
x_9 = l_Lake_Date_ofString_x3f(x_8);
if (lean_obj_tag(x_9) == 1)
{
if (x_5 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec_ref(x_9);
x_11 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg(x_3);
if (lean_obj_tag(x_11) == 1)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec_ref(x_11);
x_13 = lean_ctor_get(x_12, 1);
x_14 = lean_ctor_get(x_12, 2);
x_15 = lean_nat_sub(x_14, x_13);
x_16 = lean_nat_dec_eq(x_15, x_2);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = l_Lake_ToolchainVer_ofString___closed__0;
x_18 = l_Lake_ToolchainVer_ofString___closed__1;
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_2);
lean_ctor_set(x_19, 2, x_18);
x_20 = l_String_Slice_beq(x_12, x_19);
lean_dec_ref(x_19);
lean_dec(x_12);
if (x_20 == 0)
{
lean_object* x_21; 
lean_dec(x_10);
lean_inc_ref(x_1);
x_21 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_21, 0, x_1);
lean_ctor_set(x_21, 1, x_1);
return x_21;
}
else
{
lean_object* x_22; 
lean_dec_ref(x_1);
x_22 = l_Lake_ToolchainVer_nightly___override(x_10);
return x_22;
}
}
else
{
lean_object* x_23; 
lean_dec(x_12);
lean_dec(x_2);
lean_dec_ref(x_1);
x_23 = l_Lake_ToolchainVer_nightly___override(x_10);
return x_23;
}
}
else
{
lean_object* x_24; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_2);
lean_inc_ref(x_1);
x_24 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_24, 0, x_1);
lean_ctor_set(x_24, 1, x_1);
return x_24;
}
}
else
{
lean_object* x_25; lean_object* x_26; 
lean_dec_ref(x_3);
lean_dec(x_2);
lean_dec_ref(x_1);
x_25 = lean_ctor_get(x_9, 0);
lean_inc(x_25);
lean_dec_ref(x_9);
x_26 = l_Lake_ToolchainVer_nightly___override(x_25);
return x_26;
}
}
else
{
lean_object* x_27; 
lean_dec(x_9);
lean_dec_ref(x_3);
lean_dec(x_2);
lean_inc_ref(x_1);
x_27 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_27, 0, x_1);
lean_ctor_set(x_27, 1, x_1);
return x_27;
}
}
else
{
lean_object* x_28; 
lean_dec(x_6);
x_28 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg(x_4);
if (lean_obj_tag(x_28) == 1)
{
lean_object* x_29; lean_object* x_30; 
lean_dec(x_2);
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_30 = l_String_Slice_toNat_x3f(x_29);
lean_dec(x_29);
if (lean_obj_tag(x_30) == 1)
{
if (x_5 == 0)
{
lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
x_32 = l_Lake_ToolchainVer_prOrigin___closed__0;
x_33 = lean_string_dec_eq(x_3, x_32);
lean_dec_ref(x_3);
if (x_33 == 0)
{
lean_object* x_34; 
lean_dec(x_31);
lean_inc_ref(x_1);
x_34 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_34, 0, x_1);
lean_ctor_set(x_34, 1, x_1);
return x_34;
}
else
{
lean_object* x_35; 
lean_dec_ref(x_1);
x_35 = l_Lake_ToolchainVer_pr___override(x_31);
return x_35;
}
}
else
{
lean_object* x_36; lean_object* x_37; 
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_36 = lean_ctor_get(x_30, 0);
lean_inc(x_36);
lean_dec_ref(x_30);
x_37 = l_Lake_ToolchainVer_pr___override(x_36);
return x_37;
}
}
else
{
lean_object* x_38; 
lean_dec(x_30);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_38 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_38, 0, x_1);
lean_ctor_set(x_38, 1, x_1);
return x_38;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
lean_dec(x_28);
x_39 = l_Lake_StdVer_parse___closed__0;
x_40 = lean_string_utf8_byte_size(x_1);
lean_inc_ref(x_1);
x_41 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_39, x_2, x_40);
lean_dec(x_40);
if (lean_obj_tag(x_41) == 1)
{
if (x_5 == 0)
{
lean_object* x_42; lean_object* x_43; uint8_t x_44; 
x_42 = lean_ctor_get(x_41, 0);
lean_inc(x_42);
lean_dec_ref(x_41);
x_43 = l_Lake_ToolchainVer_defaultOrigin___closed__0;
x_44 = lean_string_dec_eq(x_3, x_43);
lean_dec_ref(x_3);
if (x_44 == 0)
{
lean_object* x_45; 
lean_dec(x_42);
lean_inc_ref(x_1);
x_45 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_45, 0, x_1);
lean_ctor_set(x_45, 1, x_1);
return x_45;
}
else
{
lean_object* x_46; 
lean_dec_ref(x_1);
x_46 = l_Lake_ToolchainVer_release___override(x_42);
return x_46;
}
}
else
{
lean_object* x_47; lean_object* x_48; 
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_47 = lean_ctor_get(x_41, 0);
lean_inc(x_47);
lean_dec_ref(x_41);
x_48 = l_Lake_ToolchainVer_release___override(x_47);
return x_48;
}
}
else
{
lean_object* x_49; 
lean_dec_ref(x_41);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_49 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_49, 0, x_1);
lean_ctor_set(x_49, 1, x_1);
return x_49;
}
}
}
}
block_76:
{
lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; 
x_53 = lean_string_utf8_byte_size(x_51);
x_54 = lean_unsigned_to_nat(0u);
x_55 = lean_nat_dec_eq(x_53, x_54);
lean_dec(x_53);
x_56 = l_Lake_ToolchainVer_ofString___closed__2;
x_57 = lean_string_utf8_byte_size(x_52);
x_58 = l_Lake_ToolchainVer_ofString___closed__3;
x_59 = lean_nat_dec_le(x_58, x_57);
if (x_59 == 0)
{
lean_dec(x_57);
x_2 = x_54;
x_3 = x_51;
x_4 = x_52;
x_5 = x_55;
goto block_50;
}
else
{
uint8_t x_60; 
x_60 = lean_string_memcmp(x_52, x_56, x_54, x_54, x_58);
if (x_60 == 0)
{
lean_dec(x_57);
x_2 = x_54;
x_3 = x_51;
x_4 = x_52;
x_5 = x_55;
goto block_50;
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_61 = lean_unsigned_to_nat(1u);
lean_inc(x_57);
lean_inc_ref(x_52);
x_62 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_62, 0, x_52);
lean_ctor_set(x_62, 1, x_54);
lean_ctor_set(x_62, 2, x_57);
x_63 = l_String_Slice_Pos_nextn(x_62, x_54, x_61);
lean_dec_ref(x_62);
x_64 = lean_string_utf8_extract(x_52, x_63, x_57);
lean_dec(x_57);
lean_dec(x_63);
lean_dec_ref(x_52);
x_65 = l_Lake_StdVer_parse___closed__0;
x_66 = lean_string_utf8_byte_size(x_64);
x_67 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_64, x_65, x_54, x_66);
lean_dec(x_66);
if (lean_obj_tag(x_67) == 1)
{
if (x_55 == 0)
{
lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_68 = lean_ctor_get(x_67, 0);
lean_inc(x_68);
lean_dec_ref(x_67);
x_69 = l_Lake_ToolchainVer_defaultOrigin___closed__0;
x_70 = lean_string_dec_eq(x_51, x_69);
lean_dec_ref(x_51);
if (x_70 == 0)
{
lean_object* x_71; 
lean_dec(x_68);
lean_inc_ref(x_1);
x_71 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_71, 0, x_1);
lean_ctor_set(x_71, 1, x_1);
return x_71;
}
else
{
lean_object* x_72; 
lean_dec_ref(x_1);
x_72 = l_Lake_ToolchainVer_release___override(x_68);
return x_72;
}
}
else
{
lean_object* x_73; lean_object* x_74; 
lean_dec_ref(x_51);
lean_dec_ref(x_1);
x_73 = lean_ctor_get(x_67, 0);
lean_inc(x_73);
lean_dec_ref(x_67);
x_74 = l_Lake_ToolchainVer_release___override(x_73);
return x_74;
}
}
else
{
lean_object* x_75; 
lean_dec_ref(x_67);
lean_dec_ref(x_51);
lean_inc_ref(x_1);
x_75 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_75, 0, x_1);
lean_ctor_set(x_75, 1, x_1);
return x_75;
}
}
}
}
block_85:
{
lean_object* x_78; uint8_t x_79; 
x_78 = lean_string_utf8_byte_size(x_1);
x_79 = lean_nat_dec_eq(x_77, x_78);
if (x_79 == 0)
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_80 = lean_string_utf8_next_fast(x_1, x_77);
x_81 = lean_unsigned_to_nat(0u);
x_82 = lean_string_utf8_extract(x_1, x_81, x_77);
lean_dec(x_77);
x_83 = lean_string_utf8_extract(x_1, x_80, x_78);
lean_dec(x_78);
lean_dec(x_80);
x_51 = x_82;
x_52 = x_83;
goto block_76;
}
else
{
lean_object* x_84; 
lean_dec(x_78);
lean_dec(x_77);
x_84 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
lean_inc_ref(x_1);
x_51 = x_84;
x_52 = x_1;
goto block_76;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_6);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Lake_ToolchainVer_ofString_spec__3___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofFile_x3f(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = l_IO_FS_readFile(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_string_utf8_byte_size(x_5);
x_8 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_8, 0, x_5);
lean_ctor_set(x_8, 1, x_6);
lean_ctor_set(x_8, 2, x_7);
x_9 = l_String_Slice_trimAscii(x_8);
lean_dec_ref(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc_ref(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
x_12 = lean_ctor_get(x_9, 2);
lean_inc(x_12);
lean_dec_ref(x_9);
x_13 = lean_string_utf8_extract(x_10, x_11, x_12);
lean_dec(x_12);
lean_dec(x_11);
lean_dec_ref(x_10);
x_14 = l_Lake_ToolchainVer_ofString(x_13);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_3, 0, x_15);
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_unsigned_to_nat(0u);
x_18 = lean_string_utf8_byte_size(x_16);
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_16);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_18);
x_20 = l_String_Slice_trimAscii(x_19);
lean_dec_ref(x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc_ref(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
x_23 = lean_ctor_get(x_20, 2);
lean_inc(x_23);
lean_dec_ref(x_20);
x_24 = lean_string_utf8_extract(x_21, x_22, x_23);
lean_dec(x_23);
lean_dec(x_22);
lean_dec_ref(x_21);
x_25 = l_Lake_ToolchainVer_ofString(x_24);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
else
{
uint8_t x_28; 
x_28 = !lean_is_exclusive(x_3);
if (x_28 == 0)
{
lean_object* x_29; 
x_29 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_29) == 11)
{
lean_object* x_30; 
lean_dec_ref(x_29);
x_30 = lean_box(0);
lean_ctor_set_tag(x_3, 0);
lean_ctor_set(x_3, 0, x_30);
return x_3;
}
else
{
return x_3;
}
}
else
{
lean_object* x_31; 
x_31 = lean_ctor_get(x_3, 0);
lean_inc(x_31);
lean_dec(x_3);
if (lean_obj_tag(x_31) == 11)
{
lean_object* x_32; lean_object* x_33; 
lean_dec_ref(x_31);
x_32 = lean_box(0);
x_33 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_33, 0, x_32);
return x_33;
}
else
{
lean_object* x_34; 
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_31);
return x_34;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofFile_x3f___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ofFile_x3f(x_1);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lake_toolchainFileName___closed__0;
x_4 = l_System_FilePath_join(x_1, x_3);
x_5 = l_Lake_ToolchainVer_ofFile_x3f(x_4);
lean_dec_ref(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_ToolchainVer_ofDir_x3f(x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instToString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_toString___override___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instToString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ToolchainVer_instToString___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ToolchainVer_instToJson___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instToJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_instToJson___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Json_getStr_x3f(x_1);
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
else
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_2, 0);
x_8 = l_Lake_ToolchainVer_ofString(x_7);
lean_ctor_set(x_2, 0, x_8);
return x_2;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_2, 0);
lean_inc(x_9);
lean_dec(x_2);
x_10 = l_Lake_ToolchainVer_ofString(x_9);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
}
}
static lean_object* _init_l_Lake_ToolchainVer_instFromJson() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_instFromJson___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_blt(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lake_StdVer_compare(x_3, x_4);
if (x_5 == 0)
{
uint8_t x_6; 
x_6 = 1;
return x_6;
}
else
{
uint8_t x_7; 
x_7 = 0;
return x_7;
}
}
else
{
uint8_t x_8; 
x_8 = 0;
return x_8;
}
}
case 1:
{
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_ctor_get(x_1, 1);
x_10 = lean_ctor_get(x_2, 1);
x_11 = l_Lake_instOrdDate_ord(x_9, x_10);
if (x_11 == 0)
{
uint8_t x_12; 
x_12 = 1;
return x_12;
}
else
{
uint8_t x_13; 
x_13 = 0;
return x_13;
}
}
else
{
uint8_t x_14; 
x_14 = 0;
return x_14;
}
}
default: 
{
uint8_t x_15; 
x_15 = 0;
return x_15;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_blt___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_ToolchainVer_blt(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instLT() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLt(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_ToolchainVer_blt(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLt___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_ToolchainVer_decLt(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_ble(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lake_StdVer_compare(x_3, x_4);
if (x_5 == 2)
{
uint8_t x_6; 
x_6 = 0;
return x_6;
}
else
{
uint8_t x_7; 
x_7 = 1;
return x_7;
}
}
else
{
uint8_t x_8; 
x_8 = 0;
return x_8;
}
}
case 1:
{
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_ctor_get(x_1, 1);
x_10 = lean_ctor_get(x_2, 1);
x_11 = l_Lake_instOrdDate_ord(x_9, x_10);
if (x_11 == 2)
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
else
{
uint8_t x_13; 
x_13 = 1;
return x_13;
}
}
else
{
uint8_t x_14; 
x_14 = 0;
return x_14;
}
}
case 2:
{
if (lean_obj_tag(x_2) == 2)
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_15 = lean_ctor_get(x_1, 1);
x_16 = lean_ctor_get(x_2, 1);
x_17 = lean_nat_dec_eq(x_15, x_16);
return x_17;
}
else
{
uint8_t x_18; 
x_18 = 0;
return x_18;
}
}
default: 
{
if (lean_obj_tag(x_2) == 3)
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_ctor_get(x_1, 1);
x_20 = lean_ctor_get(x_2, 1);
x_21 = lean_string_dec_eq(x_19, x_20);
return x_21;
}
else
{
uint8_t x_22; 
x_22 = 0;
return x_22;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ble___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_ToolchainVer_ble(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lake_ToolchainVer_instLE() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLe(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lake_ToolchainVer_ble(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLe___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_ToolchainVer_decLe(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_normalizeToolchain(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lake_ToolchainVer_ofString(x_1);
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instDecodeVersionSemVerCore___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_SemVerCore_parse), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instDecodeVersionSemVerCore() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instDecodeVersionSemVerCore___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instDecodeVersionStdVer___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_StdVer_parse), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instDecodeVersionStdVer() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instDecodeVersionStdVer___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_instDecodeVersionToolchainVer___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lake_ToolchainVer_ofString(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instDecodeVersionToolchainVer() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instDecodeVersionToolchainVer___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorIdx(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
case 2:
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
case 3:
{
lean_object* x_5; 
x_5 = lean_unsigned_to_nat(3u);
return x_5;
}
case 4:
{
lean_object* x_6; 
x_6 = lean_unsigned_to_nat(4u);
return x_6;
}
default: 
{
lean_object* x_7; 
x_7 = lean_unsigned_to_nat(5u);
return x_7;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lake_ComparatorOp_ctorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toCtorIdx(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_ctorIdx(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toCtorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lake_ComparatorOp_toCtorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_inc(x_5);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_Lake_ComparatorOp_ctorElim(x_1, x_2, x_6, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ctorElim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_ctorElim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_lt_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_lt_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_lt_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_le_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_le_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_le_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_gt_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_gt_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_gt_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_ge_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ge_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_ge_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_eq_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_eq_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_eq_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lake_ComparatorOp_ne_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ne_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_ne_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_noConfusion___redArg___lam__0(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_3 = l_Lake_ComparatorOp_ctorIdx(x_1);
x_4 = l_Lake_ComparatorOp_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
x_6 = lean_alloc_closure((void*)(l_Lake_ComparatorOp_noConfusion___redArg___lam__0___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_ComparatorOp_noConfusion___redArg(x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_3);
x_7 = l_Lake_ComparatorOp_noConfusion(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_noConfusion___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lake_ComparatorOp_noConfusion___redArg(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.lt", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.le", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.gt", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.ge", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__6;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.eq", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake.ComparatorOp.ne", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp_repr___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprComparatorOp_repr___closed__10;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprComparatorOp_repr(uint8_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_10; lean_object* x_17; lean_object* x_24; lean_object* x_31; lean_object* x_38; 
switch (x_1) {
case 0:
{
lean_object* x_45; uint8_t x_46; 
x_45 = lean_unsigned_to_nat(1024u);
x_46 = lean_nat_dec_le(x_45, x_2);
if (x_46 == 0)
{
lean_object* x_47; 
x_47 = l_Lake_instReprToolchainVer_repr___closed__3;
x_3 = x_47;
goto block_9;
}
else
{
lean_object* x_48; 
x_48 = l_Lake_instReprToolchainVer_repr___closed__4;
x_3 = x_48;
goto block_9;
}
}
case 1:
{
lean_object* x_49; uint8_t x_50; 
x_49 = lean_unsigned_to_nat(1024u);
x_50 = lean_nat_dec_le(x_49, x_2);
if (x_50 == 0)
{
lean_object* x_51; 
x_51 = l_Lake_instReprToolchainVer_repr___closed__3;
x_10 = x_51;
goto block_16;
}
else
{
lean_object* x_52; 
x_52 = l_Lake_instReprToolchainVer_repr___closed__4;
x_10 = x_52;
goto block_16;
}
}
case 2:
{
lean_object* x_53; uint8_t x_54; 
x_53 = lean_unsigned_to_nat(1024u);
x_54 = lean_nat_dec_le(x_53, x_2);
if (x_54 == 0)
{
lean_object* x_55; 
x_55 = l_Lake_instReprToolchainVer_repr___closed__3;
x_17 = x_55;
goto block_23;
}
else
{
lean_object* x_56; 
x_56 = l_Lake_instReprToolchainVer_repr___closed__4;
x_17 = x_56;
goto block_23;
}
}
case 3:
{
lean_object* x_57; uint8_t x_58; 
x_57 = lean_unsigned_to_nat(1024u);
x_58 = lean_nat_dec_le(x_57, x_2);
if (x_58 == 0)
{
lean_object* x_59; 
x_59 = l_Lake_instReprToolchainVer_repr___closed__3;
x_24 = x_59;
goto block_30;
}
else
{
lean_object* x_60; 
x_60 = l_Lake_instReprToolchainVer_repr___closed__4;
x_24 = x_60;
goto block_30;
}
}
case 4:
{
lean_object* x_61; uint8_t x_62; 
x_61 = lean_unsigned_to_nat(1024u);
x_62 = lean_nat_dec_le(x_61, x_2);
if (x_62 == 0)
{
lean_object* x_63; 
x_63 = l_Lake_instReprToolchainVer_repr___closed__3;
x_31 = x_63;
goto block_37;
}
else
{
lean_object* x_64; 
x_64 = l_Lake_instReprToolchainVer_repr___closed__4;
x_31 = x_64;
goto block_37;
}
}
default: 
{
lean_object* x_65; uint8_t x_66; 
x_65 = lean_unsigned_to_nat(1024u);
x_66 = lean_nat_dec_le(x_65, x_2);
if (x_66 == 0)
{
lean_object* x_67; 
x_67 = l_Lake_instReprToolchainVer_repr___closed__3;
x_38 = x_67;
goto block_44;
}
else
{
lean_object* x_68; 
x_68 = l_Lake_instReprToolchainVer_repr___closed__4;
x_38 = x_68;
goto block_44;
}
}
}
block_9:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; 
x_4 = l_Lake_instReprComparatorOp_repr___closed__1;
x_5 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = 0;
x_7 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set_uint8(x_7, sizeof(void*)*1, x_6);
x_8 = l_Repr_addAppParen(x_7, x_2);
return x_8;
}
block_16:
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; 
x_11 = l_Lake_instReprComparatorOp_repr___closed__3;
x_12 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = 0;
x_14 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13);
x_15 = l_Repr_addAppParen(x_14, x_2);
return x_15;
}
block_23:
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; 
x_18 = l_Lake_instReprComparatorOp_repr___closed__5;
x_19 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = 0;
x_21 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20);
x_22 = l_Repr_addAppParen(x_21, x_2);
return x_22;
}
block_30:
{
lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; 
x_25 = l_Lake_instReprComparatorOp_repr___closed__7;
x_26 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
x_27 = 0;
x_28 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27);
x_29 = l_Repr_addAppParen(x_28, x_2);
return x_29;
}
block_37:
{
lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; 
x_32 = l_Lake_instReprComparatorOp_repr___closed__9;
x_33 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
x_34 = 0;
x_35 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_34);
x_36 = l_Repr_addAppParen(x_35, x_2);
return x_36;
}
block_44:
{
lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; 
x_39 = l_Lake_instReprComparatorOp_repr___closed__11;
x_40 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
x_41 = 0;
x_42 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41);
x_43 = l_Repr_addAppParen(x_42, x_2);
return x_43;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instReprComparatorOp_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_1);
x_4 = l_Lake_instReprComparatorOp_repr(x_3, x_2);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprComparatorOp_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprComparatorOp() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprComparatorOp___closed__0;
return x_1;
}
}
static uint8_t _init_l_Lake_instInhabitedComparatorOp_default() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
static uint8_t _init_l_Lake_instInhabitedComparatorOp() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_box(x_2);
lean_inc_ref(x_1);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Data_Trie_insert___redArg(x_3, x_1, x_5);
lean_dec_ref(x_1);
return x_6;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("≠", 3, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("!=", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("≥", 3, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(">=", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(">", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("≤", 3, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("<=", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("<", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Data_Trie_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_1 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0;
x_2 = 5;
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1;
x_4 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2;
x_5 = 4;
x_6 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3;
x_7 = 3;
x_8 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4;
x_9 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5;
x_10 = 2;
x_11 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6;
x_12 = 1;
x_13 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7;
x_14 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8;
x_15 = 0;
x_16 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9;
x_17 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_14, x_15, x_16);
x_18 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_13, x_12, x_17);
x_19 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_11, x_12, x_18);
x_20 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_9, x_10, x_19);
x_21 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_8, x_7, x_20);
x_22 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_6, x_7, x_21);
x_23 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_4, x_5, x_22);
x_24 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_3, x_2, x_23);
x_25 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_1, x_2, x_24);
return x_25;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_2);
x_5 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___lam__0(x_1, x_4, x_3);
return x_5;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(internal) comparison operator parse produced invalid position", 62, 62);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected comparison operator", 28, 28);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie;
x_4 = lean_string_utf8_byte_size(x_1);
lean_inc(x_2);
x_5 = l_Lean_Data_Trie_matchPrefix___redArg(x_1, x_3, x_2, x_4);
lean_dec(x_4);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_ctor_get(x_6, 1);
x_10 = lean_string_utf8_byte_size(x_8);
lean_dec(x_8);
x_11 = lean_nat_add(x_2, x_10);
lean_dec(x_10);
x_12 = lean_string_is_valid_pos(x_1, x_11);
if (x_12 == 0)
{
lean_object* x_13; 
lean_dec(x_11);
lean_dec(x_9);
x_13 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0;
lean_ctor_set_tag(x_6, 1);
lean_ctor_set(x_6, 1, x_2);
lean_ctor_set(x_6, 0, x_13);
return x_6;
}
else
{
lean_dec(x_2);
lean_ctor_set(x_6, 1, x_11);
lean_ctor_set(x_6, 0, x_9);
return x_6;
}
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_6, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_6);
x_16 = lean_string_utf8_byte_size(x_14);
lean_dec(x_14);
x_17 = lean_nat_add(x_2, x_16);
lean_dec(x_16);
x_18 = lean_string_is_valid_pos(x_1, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_17);
lean_dec(x_15);
x_19 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0;
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_2);
return x_20;
}
else
{
lean_object* x_21; 
lean_dec(x_2);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_15);
lean_ctor_set(x_21, 1, x_17);
return x_21;
}
}
}
else
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_5);
x_22 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1;
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_2);
return x_23;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ofString_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec_ref(x_3);
x_6 = lean_string_utf8_byte_size(x_1);
x_7 = lean_nat_dec_eq(x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_4);
x_8 = lean_box(0);
return x_8;
}
else
{
lean_object* x_9; 
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
}
else
{
lean_object* x_10; 
lean_dec_ref(x_3);
x_10 = lean_box(0);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_ofString_x3f___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ComparatorOp_ofString_x3f(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toString(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8;
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6;
return x_3;
}
case 2:
{
lean_object* x_4; 
x_4 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5;
return x_4;
}
case 3:
{
lean_object* x_5; 
x_5 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3;
return x_5;
}
case 4:
{
lean_object* x_6; 
x_6 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2;
return x_6;
}
default: 
{
lean_object* x_7; 
x_7 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0;
return x_7;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_ComparatorOp_toString___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lake_ComparatorOp_toString(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_ComparatorOp_instToString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ComparatorOp_toString___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_ComparatorOp_instToString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_ComparatorOp_instToString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ver", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprVerComparator_repr___redArg___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprVerComparator_repr___redArg___closed__1;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_2 = l_Lake_instReprVerComparator_repr___redArg___closed__2;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(7u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("op", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprVerComparator_repr___redArg___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(6u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("includeSuffixes", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprVerComparator_repr___redArg___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerComparator_repr___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(19u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1);
lean_dec_ref(x_1);
x_5 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_6 = l_Lake_instReprVerComparator_repr___redArg___closed__3;
x_7 = l_Lake_instReprVerComparator_repr___redArg___closed__4;
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lake_instReprStdVer_repr___redArg(x_2);
x_10 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
x_11 = 0;
x_12 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11);
x_13 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_15 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_box(1);
x_17 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lake_instReprVerComparator_repr___redArg___closed__6;
x_19 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_5);
x_21 = l_Lake_instReprVerComparator_repr___redArg___closed__7;
x_22 = l_Lake_instReprComparatorOp_repr(x_3, x_8);
x_23 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_11);
x_25 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_25, 0, x_20);
lean_ctor_set(x_25, 1, x_24);
x_26 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_14);
x_27 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_16);
x_28 = l_Lake_instReprVerComparator_repr___redArg___closed__9;
x_29 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_5);
x_31 = l_Lake_instReprVerComparator_repr___redArg___closed__10;
x_32 = l_Bool_repr___redArg(x_4);
x_33 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_11);
x_35 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_35, 0, x_30);
lean_ctor_set(x_35, 1, x_34);
x_36 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_37 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_38 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_35);
x_39 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_40 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
x_41 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_41, 0, x_36);
lean_ctor_set(x_41, 1, x_40);
x_42 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_11);
return x_42;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprVerComparator_repr___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerComparator_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprVerComparator_repr(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerComparator___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprVerComparator_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerComparator() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprVerComparator___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_VerComparator_wild___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_2 = l_Lake_instInhabitedSemVerCore_default___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_VerComparator_wild___closed__1() {
_start:
{
uint8_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; 
x_1 = 0;
x_2 = 3;
x_3 = l_Lake_VerComparator_wild___closed__0;
x_4 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set_uint8(x_4, sizeof(void*)*1, x_2);
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 1, x_1);
return x_4;
}
}
static lean_object* _init_l_Lake_VerComparator_wild() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_VerComparator_wild___closed__1;
return x_1;
}
}
static lean_object* _init_l_Lake_VerComparator_instInhabited() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_VerComparator_wild;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerComparator_parseM(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_6 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM(x_1, x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec_ref(x_6);
x_9 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr_x3f(x_1, x_8);
lean_dec_ref(x_1);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 1)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_9, 0);
lean_dec(x_12);
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec_ref(x_10);
x_14 = lean_string_utf8_byte_size(x_13);
x_15 = lean_unsigned_to_nat(0u);
x_16 = lean_nat_dec_eq(x_14, x_15);
lean_dec(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_7);
lean_ctor_set(x_17, 1, x_13);
x_18 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_18, 0, x_17);
x_19 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_19);
lean_ctor_set_uint8(x_18, sizeof(void*)*1 + 1, x_16);
lean_ctor_set(x_9, 0, x_18);
return x_9;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
lean_dec(x_13);
x_20 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_7);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_22, 0, x_21);
x_23 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_22, sizeof(void*)*1, x_23);
lean_ctor_set_uint8(x_22, sizeof(void*)*1 + 1, x_16);
lean_ctor_set(x_9, 0, x_22);
return x_9;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_24 = lean_ctor_get(x_9, 1);
lean_inc(x_24);
lean_dec(x_9);
x_25 = lean_ctor_get(x_10, 0);
lean_inc(x_25);
lean_dec_ref(x_10);
x_26 = lean_string_utf8_byte_size(x_25);
x_27 = lean_unsigned_to_nat(0u);
x_28 = lean_nat_dec_eq(x_26, x_27);
lean_dec(x_26);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; 
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_7);
lean_ctor_set(x_29, 1, x_25);
x_30 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_30, 0, x_29);
x_31 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_31);
lean_ctor_set_uint8(x_30, sizeof(void*)*1 + 1, x_28);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_24);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; 
lean_dec(x_25);
x_33 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_7);
lean_ctor_set(x_34, 1, x_33);
x_35 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_35, 0, x_34);
x_36 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_36);
lean_ctor_set_uint8(x_35, sizeof(void*)*1 + 1, x_28);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_24);
return x_37;
}
}
}
else
{
uint8_t x_38; 
lean_dec(x_10);
x_38 = !lean_is_exclusive(x_9);
if (x_38 == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; uint8_t x_44; 
x_39 = lean_ctor_get(x_9, 0);
lean_dec(x_39);
x_40 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_7);
lean_ctor_set(x_41, 1, x_40);
x_42 = 0;
x_43 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_43, 0, x_41);
x_44 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_44);
lean_ctor_set_uint8(x_43, sizeof(void*)*1 + 1, x_42);
lean_ctor_set(x_9, 0, x_43);
return x_9;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; 
x_45 = lean_ctor_get(x_9, 1);
lean_inc(x_45);
lean_dec(x_9);
x_46 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_47 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_47, 0, x_7);
lean_ctor_set(x_47, 1, x_46);
x_48 = 0;
x_49 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_49, 0, x_47);
x_50 = lean_unbox(x_4);
lean_dec(x_4);
lean_ctor_set_uint8(x_49, sizeof(void*)*1, x_50);
lean_ctor_set_uint8(x_49, sizeof(void*)*1 + 1, x_48);
x_51 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_45);
return x_51;
}
}
}
else
{
uint8_t x_52; 
lean_dec(x_4);
lean_dec_ref(x_1);
x_52 = !lean_is_exclusive(x_6);
if (x_52 == 0)
{
return x_6;
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_53 = lean_ctor_get(x_6, 0);
x_54 = lean_ctor_get(x_6, 1);
lean_inc(x_54);
lean_inc(x_53);
lean_dec(x_6);
x_55 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_55, 0, x_53);
lean_ctor_set(x_55, 1, x_54);
return x_55;
}
}
}
else
{
uint8_t x_56; 
lean_dec_ref(x_1);
x_56 = !lean_is_exclusive(x_3);
if (x_56 == 0)
{
return x_3;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_57 = lean_ctor_get(x_3, 0);
x_58 = lean_ctor_get(x_3, 1);
lean_inc(x_58);
lean_inc(x_57);
lean_dec(x_3);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_58);
return x_59;
}
}
}
}
static lean_object* _init_l_Lake_VerComparator_parse___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lake_Util_Version_0__Lake_VerComparator_parseM), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_VerComparator_parse(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_VerComparator_parse___closed__0;
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_string_utf8_byte_size(x_1);
x_5 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lake_VerComparator_test(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; uint8_t x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; 
x_41 = lean_ctor_get(x_1, 0);
x_42 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_43 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1);
if (x_43 == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; 
x_49 = lean_ctor_get(x_2, 0);
x_50 = lean_ctor_get(x_2, 1);
x_51 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_52 = lean_string_dec_eq(x_50, x_51);
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_53 = lean_ctor_get(x_41, 0);
x_54 = lean_ctor_get(x_41, 1);
x_55 = lean_string_dec_eq(x_54, x_51);
if (x_55 == 0)
{
uint8_t x_56; 
x_56 = l_Lake_instDecidableEqSemVerCore_decEq(x_53, x_49);
if (x_56 == 0)
{
return x_43;
}
else
{
switch (x_42) {
case 0:
{
uint8_t x_57; 
x_57 = lean_string_dec_lt(x_50, x_54);
return x_57;
}
case 1:
{
uint8_t x_58; 
x_58 = l_String_decLE(x_50, x_54);
return x_58;
}
case 2:
{
uint8_t x_59; 
x_59 = lean_string_dec_lt(x_54, x_50);
return x_59;
}
case 3:
{
uint8_t x_60; 
x_60 = l_String_decLE(x_54, x_50);
return x_60;
}
case 4:
{
uint8_t x_61; 
x_61 = lean_string_dec_eq(x_50, x_54);
return x_61;
}
default: 
{
uint8_t x_62; 
x_62 = lean_string_dec_eq(x_50, x_54);
if (x_62 == 0)
{
return x_56;
}
else
{
return x_55;
}
}
}
}
}
else
{
return x_43;
}
}
else
{
x_44 = x_2;
goto block_48;
}
}
else
{
x_44 = x_2;
goto block_48;
}
block_13:
{
uint8_t x_10; 
x_10 = l_Lake_instDecidableEqStdVer_decEq(x_4, x_6);
switch (x_3) {
case 0:
{
return x_8;
}
case 1:
{
return x_7;
}
case 2:
{
return x_5;
}
case 3:
{
return x_9;
}
case 4:
{
return x_10;
}
default: 
{
if (x_10 == 0)
{
uint8_t x_11; 
x_11 = 1;
return x_11;
}
else
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
}
}
}
block_23:
{
uint8_t x_20; 
x_20 = l_Lake_StdVer_compare(x_16, x_15);
if (x_20 == 2)
{
uint8_t x_21; 
x_21 = 0;
x_3 = x_14;
x_4 = x_15;
x_5 = x_19;
x_6 = x_16;
x_7 = x_18;
x_8 = x_17;
x_9 = x_21;
goto block_13;
}
else
{
uint8_t x_22; 
x_22 = 1;
x_3 = x_14;
x_4 = x_15;
x_5 = x_19;
x_6 = x_16;
x_7 = x_18;
x_8 = x_17;
x_9 = x_22;
goto block_13;
}
}
block_32:
{
uint8_t x_29; 
x_29 = l_Lake_StdVer_compare(x_26, x_25);
if (x_29 == 0)
{
uint8_t x_30; 
x_30 = 1;
x_14 = x_24;
x_15 = x_25;
x_16 = x_26;
x_17 = x_27;
x_18 = x_28;
x_19 = x_30;
goto block_23;
}
else
{
uint8_t x_31; 
x_31 = 0;
x_14 = x_24;
x_15 = x_25;
x_16 = x_26;
x_17 = x_27;
x_18 = x_28;
x_19 = x_31;
goto block_23;
}
}
block_40:
{
uint8_t x_37; 
x_37 = l_Lake_StdVer_compare(x_34, x_35);
if (x_37 == 2)
{
uint8_t x_38; 
x_38 = 0;
x_24 = x_33;
x_25 = x_34;
x_26 = x_35;
x_27 = x_36;
x_28 = x_38;
goto block_32;
}
else
{
uint8_t x_39; 
x_39 = 1;
x_24 = x_33;
x_25 = x_34;
x_26 = x_35;
x_27 = x_36;
x_28 = x_39;
goto block_32;
}
}
block_48:
{
uint8_t x_45; 
x_45 = l_Lake_StdVer_compare(x_44, x_41);
if (x_45 == 0)
{
uint8_t x_46; 
x_46 = 1;
x_33 = x_42;
x_34 = x_44;
x_35 = x_41;
x_36 = x_46;
goto block_40;
}
else
{
uint8_t x_47; 
x_47 = 0;
x_33 = x_42;
x_34 = x_44;
x_35 = x_41;
x_36 = x_47;
goto block_40;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_VerComparator_test___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_VerComparator_test(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_VerComparator_toString(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1);
lean_dec_ref(x_1);
x_5 = l_Lake_ComparatorOp_toString(x_3);
x_6 = l_Lake_StdVer_toString(x_2);
x_7 = lean_string_append(x_5, x_6);
lean_dec_ref(x_6);
if (x_4 == 0)
{
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Lake_StdVer_toString___closed__0;
x_9 = lean_string_append(x_7, x_8);
return x_9;
}
}
}
static lean_object* _init_l_Lake_VerComparator_instToString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_VerComparator_toString), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_VerComparator_instToString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_VerComparator_instToString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toString", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprVerRange_repr___redArg___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprVerRange_repr___redArg___closed__1;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_2 = l_Lake_instReprVerRange_repr___redArg___closed__2;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(12u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("clauses", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lake_instReprVerRange_repr___redArg___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_instReprVerRange_repr___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(11u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(1);
x_2 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_1);
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 0, x_2);
x_7 = l_Lake_instReprVerComparator_repr___redArg(x_5);
x_8 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_7);
x_2 = x_8;
x_3 = x_6;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_3, 0);
x_11 = lean_ctor_get(x_3, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_3);
lean_inc(x_1);
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_2);
lean_ctor_set(x_12, 1, x_1);
x_13 = l_Lake_instReprVerComparator_repr___redArg(x_10);
x_14 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_2 = x_14;
x_3 = x_11;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_1);
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 0, x_2);
x_7 = l_Lake_instReprVerComparator_repr___redArg(x_5);
x_8 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0_spec__0(x_1, x_8, x_6);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_10 = lean_ctor_get(x_3, 0);
x_11 = lean_ctor_get(x_3, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_3);
lean_inc(x_1);
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_2);
lean_ctor_set(x_12, 1, x_1);
x_13 = l_Lake_instReprVerComparator_repr___redArg(x_10);
x_14 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0_spec__0(x_1, x_14, x_11);
return x_15;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
lean_dec(x_2);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_2);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_Lake_instReprVerComparator_repr___redArg(x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_inc(x_4);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec_ref(x_1);
x_8 = l_Lake_instReprVerComparator_repr___redArg(x_7);
x_9 = l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0_spec__0(x_2, x_8, x_4);
return x_9;
}
}
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("#[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0;
x_2 = lean_string_length(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3;
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("#[]", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_array_get_size(x_1);
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_nat_dec_eq(x_2, x_3);
lean_dec(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_5 = lean_array_to_list(x_1);
x_6 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1;
x_7 = l_Std_Format_joinSep___at___00Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0_spec__0(x_5, x_6);
x_8 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4;
x_9 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5;
x_10 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_7);
x_11 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6;
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_13, 0, x_8);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_Std_Format_fill(x_13);
return x_14;
}
else
{
lean_object* x_15; 
lean_dec_ref(x_1);
x_15 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8;
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_1);
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 0, x_2);
x_7 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(x_5);
x_8 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_7);
x_2 = x_8;
x_3 = x_6;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_3, 0);
x_11 = lean_ctor_get(x_3, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_3);
lean_inc(x_1);
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_2);
lean_ctor_set(x_12, 1, x_1);
x_13 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(x_10);
x_14 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_2 = x_14;
x_3 = x_11;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
lean_dec(x_2);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_2);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_inc(x_4);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec_ref(x_1);
x_8 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0(x_7);
x_9 = l_List_foldl___at___00Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4_spec__4(x_2, x_8, x_4);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_array_get_size(x_1);
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_nat_dec_eq(x_2, x_3);
lean_dec(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_5 = lean_array_to_list(x_1);
x_6 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1;
x_7 = l_Std_Format_joinSep___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__4(x_5, x_6);
x_8 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4;
x_9 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5;
x_10 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_7);
x_11 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6;
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_13, 0, x_8);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_Std_Format_fill(x_13);
return x_14;
}
else
{
lean_object* x_15; 
lean_dec_ref(x_1);
x_15 = l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8;
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr___redArg(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_6 = l_Lake_instReprVerRange_repr___redArg___closed__3;
x_7 = l_Lake_instReprVerRange_repr___redArg___closed__4;
x_8 = l_String_quote(x_3);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set_tag(x_1, 4);
lean_ctor_set(x_1, 1, x_9);
lean_ctor_set(x_1, 0, x_7);
x_10 = 0;
x_11 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_11, 0, x_1);
lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_10);
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_14 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_15 = lean_box(1);
x_16 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Lake_instReprVerRange_repr___redArg___closed__6;
x_18 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
x_19 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_5);
x_20 = l_Lake_instReprVerRange_repr___redArg___closed__7;
x_21 = l_Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0(x_4);
x_22 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_10);
x_24 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_26 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_27 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_24);
x_28 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_29 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_30, 0, x_25);
lean_ctor_set(x_30, 1, x_29);
x_31 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_10);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_32 = lean_ctor_get(x_1, 0);
x_33 = lean_ctor_get(x_1, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_1);
x_34 = l_Lake_instReprSemVerCore_repr___redArg___closed__5;
x_35 = l_Lake_instReprVerRange_repr___redArg___closed__3;
x_36 = l_Lake_instReprVerRange_repr___redArg___closed__4;
x_37 = l_String_quote(x_32);
x_38 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_38, 0, x_37);
x_39 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_39, 0, x_36);
lean_ctor_set(x_39, 1, x_38);
x_40 = 0;
x_41 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_40);
x_42 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_42, 0, x_35);
lean_ctor_set(x_42, 1, x_41);
x_43 = l_Lake_instReprSemVerCore_repr___redArg___closed__9;
x_44 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = lean_box(1);
x_46 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
x_47 = l_Lake_instReprVerRange_repr___redArg___closed__6;
x_48 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
x_49 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_34);
x_50 = l_Lake_instReprVerRange_repr___redArg___closed__7;
x_51 = l_Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0(x_33);
x_52 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
x_53 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_40);
x_54 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_54, 0, x_49);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lake_instReprSemVerCore_repr___redArg___closed__16;
x_56 = l_Lake_instReprSemVerCore_repr___redArg___closed__17;
x_57 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_54);
x_58 = l_Lake_instReprSemVerCore_repr___redArg___closed__18;
x_59 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_58);
x_60 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_60, 0, x_55);
lean_ctor_set(x_60, 1, x_59);
x_61 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_40);
return x_61;
}
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprVerRange_repr___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instReprVerRange_repr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_instReprVerRange_repr(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instReprVerRange___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_instReprVerRange_repr___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instReprVerRange() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instReprVerRange___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedVerRange_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedVerRange_default___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lake_instInhabitedVerRange_default___closed__0;
x_2 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instInhabitedVerRange_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedVerRange_default___closed__1;
return x_1;
}
}
static lean_object* _init_l_Lake_instInhabitedVerRange() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_instInhabitedVerRange_default;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_VerRange_instToString___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_VerRange_instToString___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_VerRange_instToString___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lake_VerRange_instToString() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_VerRange_instToString___lam__0___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", ", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; 
x_6 = lean_array_uget(x_1, x_2);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0;
x_8 = lean_string_append(x_4, x_7);
x_9 = l_Lake_VerComparator_toString(x_6);
x_10 = lean_string_append(x_8, x_9);
lean_dec_ref(x_9);
x_11 = 1;
x_12 = lean_usize_add(x_2, x_11);
x_2 = x_12;
x_4 = x_10;
goto _start;
}
else
{
return x_4;
}
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("<empty>", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_array_get_size(x_1);
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_nat_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_5 = lean_array_fget_borrowed(x_1, x_3);
lean_inc(x_5);
x_6 = l_Lake_VerComparator_toString(x_5);
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_nat_dec_lt(x_7, x_2);
if (x_8 == 0)
{
lean_dec(x_2);
return x_6;
}
else
{
uint8_t x_9; 
x_9 = lean_nat_dec_le(x_2, x_2);
if (x_9 == 0)
{
lean_dec(x_2);
return x_6;
}
else
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = 1;
x_11 = lean_usize_of_nat(x_2);
lean_dec(x_2);
x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0(x_1, x_10, x_11, x_6);
return x_12;
}
}
}
else
{
lean_object* x_13; 
lean_dec(x_2);
x_13 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0;
return x_13;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" || ", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; 
x_6 = lean_array_uget(x_1, x_2);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0;
x_8 = lean_string_append(x_4, x_7);
x_9 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds(x_6);
lean_dec(x_6);
x_10 = lean_string_append(x_8, x_9);
lean_dec_ref(x_9);
x_11 = 1;
x_12 = lean_usize_add(x_2, x_11);
x_2 = x_12;
x_4 = x_10;
goto _start;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_array_get_size(x_1);
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_nat_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_5 = lean_array_fget_borrowed(x_1, x_3);
x_6 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds(x_5);
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_nat_dec_lt(x_7, x_2);
if (x_8 == 0)
{
lean_dec(x_2);
return x_6;
}
else
{
uint8_t x_9; 
x_9 = lean_nat_dec_le(x_2, x_2);
if (x_9 == 0)
{
lean_dec(x_2);
return x_6;
}
else
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = 1;
x_11 = lean_usize_of_nat(x_2);
lean_dec(x_2);
x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0(x_1, x_10, x_11, x_6);
return x_12;
}
}
}
else
{
lean_object* x_13; 
lean_dec(x_2);
x_13 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
return x_13;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_VerRange_ofClauses(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs(x_1);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_appendRange(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; 
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_4);
x_6 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_6);
x_8 = 3;
x_9 = 0;
x_10 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_10, 0, x_5);
lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_8);
lean_ctor_set_uint8(x_10, sizeof(void*)*1 + 1, x_9);
x_11 = lean_array_push(x_1, x_10);
x_12 = 0;
x_13 = 1;
x_14 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_14, 0, x_7);
lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_12);
lean_ctor_set_uint8(x_14, sizeof(void*)*1 + 1, x_13);
x_15 = lean_array_push(x_11, x_14);
return x_15;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid tilde range: incorrect number of components: got ", 57, 57);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", expected 1-3", 14, 14);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
lean_inc(x_3);
lean_inc_ref(x_1);
x_6 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_5, x_3, x_3);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_ctor_get(x_6, 1);
x_10 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_9);
lean_dec_ref(x_1);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_array_get_size(x_8);
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_dec_eq(x_13, x_14);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17; 
x_16 = lean_unsigned_to_nat(2u);
x_17 = lean_nat_dec_eq(x_13, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = lean_unsigned_to_nat(3u);
x_19 = lean_nat_dec_eq(x_13, x_18);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_12);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_20 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0;
x_21 = l_Nat_reprFast(x_13);
x_22 = lean_string_append(x_20, x_21);
lean_dec_ref(x_21);
x_23 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_24 = lean_string_append(x_22, x_23);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_24);
return x_10;
}
else
{
lean_object* x_25; lean_object* x_26; 
lean_dec(x_13);
x_25 = lean_array_fget_borrowed(x_8, x_4);
x_26 = l_String_Slice_toNat_x3f(x_25);
if (lean_obj_tag(x_26) == 1)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
lean_dec_ref(x_26);
x_28 = lean_array_fget_borrowed(x_8, x_14);
x_29 = l_String_Slice_toNat_x3f(x_28);
if (lean_obj_tag(x_29) == 1)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
lean_dec_ref(x_29);
x_31 = lean_array_fget(x_8, x_16);
lean_dec(x_8);
x_32 = l_String_Slice_toNat_x3f(x_31);
if (lean_obj_tag(x_32) == 1)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; 
lean_dec(x_31);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec_ref(x_32);
lean_inc(x_30);
lean_inc(x_27);
x_34 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_34, 0, x_27);
lean_ctor_set(x_34, 1, x_30);
lean_ctor_set(x_34, 2, x_33);
x_35 = lean_nat_add(x_30, x_14);
lean_dec(x_30);
x_36 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_36, 0, x_27);
lean_ctor_set(x_36, 1, x_35);
lean_ctor_set(x_36, 2, x_4);
lean_ctor_set(x_6, 1, x_12);
lean_ctor_set(x_6, 0, x_34);
x_37 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_36);
lean_ctor_set(x_38, 1, x_37);
x_39 = 3;
x_40 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_40, 0, x_6);
lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39);
lean_ctor_set_uint8(x_40, sizeof(void*)*1 + 1, x_17);
x_41 = lean_array_push(x_2, x_40);
x_42 = 0;
x_43 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_43, 0, x_38);
lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42);
lean_ctor_set_uint8(x_43, sizeof(void*)*1 + 1, x_19);
x_44 = lean_array_push(x_41, x_43);
lean_ctor_set(x_10, 0, x_44);
return x_10;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
lean_dec(x_32);
lean_dec(x_30);
lean_dec(x_27);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_45 = lean_ctor_get(x_31, 0);
lean_inc_ref(x_45);
x_46 = lean_ctor_get(x_31, 1);
lean_inc(x_46);
x_47 = lean_ctor_get(x_31, 2);
lean_inc(x_47);
lean_dec(x_31);
x_48 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_49 = lean_string_utf8_extract(x_45, x_46, x_47);
lean_dec(x_47);
lean_dec(x_46);
lean_dec_ref(x_45);
x_50 = lean_string_append(x_48, x_49);
lean_dec_ref(x_49);
x_51 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_52 = lean_string_append(x_50, x_51);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_52);
return x_10;
}
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
lean_dec(x_29);
lean_inc(x_28);
lean_dec(x_27);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_53 = lean_ctor_get(x_28, 0);
lean_inc_ref(x_53);
x_54 = lean_ctor_get(x_28, 1);
lean_inc(x_54);
x_55 = lean_ctor_get(x_28, 2);
lean_inc(x_55);
lean_dec(x_28);
x_56 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_57 = lean_string_utf8_extract(x_53, x_54, x_55);
lean_dec(x_55);
lean_dec(x_54);
lean_dec_ref(x_53);
x_58 = lean_string_append(x_56, x_57);
lean_dec_ref(x_57);
x_59 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_60 = lean_string_append(x_58, x_59);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_60);
return x_10;
}
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
lean_dec(x_26);
lean_inc(x_25);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_61 = lean_ctor_get(x_25, 0);
lean_inc_ref(x_61);
x_62 = lean_ctor_get(x_25, 1);
lean_inc(x_62);
x_63 = lean_ctor_get(x_25, 2);
lean_inc(x_63);
lean_dec(x_25);
x_64 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_65 = lean_string_utf8_extract(x_61, x_62, x_63);
lean_dec(x_63);
lean_dec(x_62);
lean_dec_ref(x_61);
x_66 = lean_string_append(x_64, x_65);
lean_dec_ref(x_65);
x_67 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_68 = lean_string_append(x_66, x_67);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_68);
return x_10;
}
}
}
else
{
lean_object* x_69; lean_object* x_70; 
lean_dec(x_13);
x_69 = lean_array_fget_borrowed(x_8, x_4);
x_70 = l_String_Slice_toNat_x3f(x_69);
if (lean_obj_tag(x_70) == 1)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_ctor_get(x_70, 0);
lean_inc(x_71);
lean_dec_ref(x_70);
x_72 = lean_array_fget(x_8, x_14);
lean_dec(x_8);
x_73 = l_String_Slice_toNat_x3f(x_72);
if (lean_obj_tag(x_73) == 1)
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; 
lean_dec(x_72);
x_74 = lean_ctor_get(x_73, 0);
lean_inc(x_74);
lean_dec_ref(x_73);
lean_inc(x_74);
lean_inc(x_71);
x_75 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_75, 0, x_71);
lean_ctor_set(x_75, 1, x_74);
lean_ctor_set(x_75, 2, x_4);
x_76 = lean_nat_add(x_74, x_14);
lean_dec(x_74);
x_77 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_77, 0, x_71);
lean_ctor_set(x_77, 1, x_76);
lean_ctor_set(x_77, 2, x_4);
lean_ctor_set(x_6, 1, x_12);
lean_ctor_set(x_6, 0, x_75);
x_78 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_79 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_79, 0, x_77);
lean_ctor_set(x_79, 1, x_78);
x_80 = 3;
x_81 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_81, 0, x_6);
lean_ctor_set_uint8(x_81, sizeof(void*)*1, x_80);
lean_ctor_set_uint8(x_81, sizeof(void*)*1 + 1, x_15);
x_82 = lean_array_push(x_2, x_81);
x_83 = 0;
x_84 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_84, 0, x_79);
lean_ctor_set_uint8(x_84, sizeof(void*)*1, x_83);
lean_ctor_set_uint8(x_84, sizeof(void*)*1 + 1, x_17);
x_85 = lean_array_push(x_82, x_84);
lean_ctor_set(x_10, 0, x_85);
return x_10;
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
lean_dec(x_73);
lean_dec(x_71);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_86 = lean_ctor_get(x_72, 0);
lean_inc_ref(x_86);
x_87 = lean_ctor_get(x_72, 1);
lean_inc(x_87);
x_88 = lean_ctor_get(x_72, 2);
lean_inc(x_88);
lean_dec(x_72);
x_89 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_90 = lean_string_utf8_extract(x_86, x_87, x_88);
lean_dec(x_88);
lean_dec(x_87);
lean_dec_ref(x_86);
x_91 = lean_string_append(x_89, x_90);
lean_dec_ref(x_90);
x_92 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_93 = lean_string_append(x_91, x_92);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_93);
return x_10;
}
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_70);
lean_inc(x_69);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_94 = lean_ctor_get(x_69, 0);
lean_inc_ref(x_94);
x_95 = lean_ctor_get(x_69, 1);
lean_inc(x_95);
x_96 = lean_ctor_get(x_69, 2);
lean_inc(x_96);
lean_dec(x_69);
x_97 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_98 = lean_string_utf8_extract(x_94, x_95, x_96);
lean_dec(x_96);
lean_dec(x_95);
lean_dec_ref(x_94);
x_99 = lean_string_append(x_97, x_98);
lean_dec_ref(x_98);
x_100 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_101 = lean_string_append(x_99, x_100);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_101);
return x_10;
}
}
}
else
{
lean_object* x_102; lean_object* x_103; 
lean_dec(x_13);
x_102 = lean_array_fget(x_8, x_4);
lean_dec(x_8);
x_103 = l_String_Slice_toNat_x3f(x_102);
if (lean_obj_tag(x_103) == 1)
{
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; 
lean_dec(x_102);
x_104 = lean_ctor_get(x_103, 0);
lean_inc(x_104);
lean_dec_ref(x_103);
lean_inc(x_104);
x_105 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_105, 0, x_104);
lean_ctor_set(x_105, 1, x_4);
lean_ctor_set(x_105, 2, x_4);
x_106 = lean_nat_add(x_104, x_14);
lean_dec(x_104);
x_107 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_4);
lean_ctor_set(x_107, 2, x_4);
lean_ctor_set(x_6, 1, x_12);
lean_ctor_set(x_6, 0, x_105);
x_108 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_109 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_109, 0, x_107);
lean_ctor_set(x_109, 1, x_108);
x_110 = 3;
x_111 = 0;
x_112 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_112, 0, x_6);
lean_ctor_set_uint8(x_112, sizeof(void*)*1, x_110);
lean_ctor_set_uint8(x_112, sizeof(void*)*1 + 1, x_111);
x_113 = lean_array_push(x_2, x_112);
x_114 = 0;
x_115 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_115, 0, x_109);
lean_ctor_set_uint8(x_115, sizeof(void*)*1, x_114);
lean_ctor_set_uint8(x_115, sizeof(void*)*1 + 1, x_15);
x_116 = lean_array_push(x_113, x_115);
lean_ctor_set(x_10, 0, x_116);
return x_10;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; 
lean_dec(x_103);
lean_dec(x_12);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_117 = lean_ctor_get(x_102, 0);
lean_inc_ref(x_117);
x_118 = lean_ctor_get(x_102, 1);
lean_inc(x_118);
x_119 = lean_ctor_get(x_102, 2);
lean_inc(x_119);
lean_dec(x_102);
x_120 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_121 = lean_string_utf8_extract(x_117, x_118, x_119);
lean_dec(x_119);
lean_dec(x_118);
lean_dec_ref(x_117);
x_122 = lean_string_append(x_120, x_121);
lean_dec_ref(x_121);
x_123 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_124 = lean_string_append(x_122, x_123);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_124);
return x_10;
}
}
}
else
{
lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; 
x_125 = lean_ctor_get(x_10, 0);
x_126 = lean_ctor_get(x_10, 1);
lean_inc(x_126);
lean_inc(x_125);
lean_dec(x_10);
x_127 = lean_array_get_size(x_8);
x_128 = lean_unsigned_to_nat(1u);
x_129 = lean_nat_dec_eq(x_127, x_128);
if (x_129 == 0)
{
lean_object* x_130; uint8_t x_131; 
x_130 = lean_unsigned_to_nat(2u);
x_131 = lean_nat_dec_eq(x_127, x_130);
if (x_131 == 0)
{
lean_object* x_132; uint8_t x_133; 
x_132 = lean_unsigned_to_nat(3u);
x_133 = lean_nat_dec_eq(x_127, x_132);
if (x_133 == 0)
{
lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; 
lean_dec(x_125);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_134 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0;
x_135 = l_Nat_reprFast(x_127);
x_136 = lean_string_append(x_134, x_135);
lean_dec_ref(x_135);
x_137 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_138 = lean_string_append(x_136, x_137);
x_139 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_139, 0, x_138);
lean_ctor_set(x_139, 1, x_126);
return x_139;
}
else
{
lean_object* x_140; lean_object* x_141; 
lean_dec(x_127);
x_140 = lean_array_fget_borrowed(x_8, x_4);
x_141 = l_String_Slice_toNat_x3f(x_140);
if (lean_obj_tag(x_141) == 1)
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_142 = lean_ctor_get(x_141, 0);
lean_inc(x_142);
lean_dec_ref(x_141);
x_143 = lean_array_fget_borrowed(x_8, x_128);
x_144 = l_String_Slice_toNat_x3f(x_143);
if (lean_obj_tag(x_144) == 1)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; 
x_145 = lean_ctor_get(x_144, 0);
lean_inc(x_145);
lean_dec_ref(x_144);
x_146 = lean_array_fget(x_8, x_130);
lean_dec(x_8);
x_147 = l_String_Slice_toNat_x3f(x_146);
if (lean_obj_tag(x_147) == 1)
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
lean_dec(x_146);
x_148 = lean_ctor_get(x_147, 0);
lean_inc(x_148);
lean_dec_ref(x_147);
lean_inc(x_145);
lean_inc(x_142);
x_149 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_149, 0, x_142);
lean_ctor_set(x_149, 1, x_145);
lean_ctor_set(x_149, 2, x_148);
x_150 = lean_nat_add(x_145, x_128);
lean_dec(x_145);
x_151 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_151, 0, x_142);
lean_ctor_set(x_151, 1, x_150);
lean_ctor_set(x_151, 2, x_4);
lean_ctor_set(x_6, 1, x_125);
lean_ctor_set(x_6, 0, x_149);
x_152 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_153 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_153, 0, x_151);
lean_ctor_set(x_153, 1, x_152);
x_154 = 3;
x_155 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_155, 0, x_6);
lean_ctor_set_uint8(x_155, sizeof(void*)*1, x_154);
lean_ctor_set_uint8(x_155, sizeof(void*)*1 + 1, x_131);
x_156 = lean_array_push(x_2, x_155);
x_157 = 0;
x_158 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_158, 0, x_153);
lean_ctor_set_uint8(x_158, sizeof(void*)*1, x_157);
lean_ctor_set_uint8(x_158, sizeof(void*)*1 + 1, x_133);
x_159 = lean_array_push(x_156, x_158);
x_160 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_160, 0, x_159);
lean_ctor_set(x_160, 1, x_126);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; 
lean_dec(x_147);
lean_dec(x_145);
lean_dec(x_142);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_161 = lean_ctor_get(x_146, 0);
lean_inc_ref(x_161);
x_162 = lean_ctor_get(x_146, 1);
lean_inc(x_162);
x_163 = lean_ctor_get(x_146, 2);
lean_inc(x_163);
lean_dec(x_146);
x_164 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_165 = lean_string_utf8_extract(x_161, x_162, x_163);
lean_dec(x_163);
lean_dec(x_162);
lean_dec_ref(x_161);
x_166 = lean_string_append(x_164, x_165);
lean_dec_ref(x_165);
x_167 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_168 = lean_string_append(x_166, x_167);
x_169 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_126);
return x_169;
}
}
else
{
lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; 
lean_dec(x_144);
lean_inc(x_143);
lean_dec(x_142);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_170 = lean_ctor_get(x_143, 0);
lean_inc_ref(x_170);
x_171 = lean_ctor_get(x_143, 1);
lean_inc(x_171);
x_172 = lean_ctor_get(x_143, 2);
lean_inc(x_172);
lean_dec(x_143);
x_173 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_174 = lean_string_utf8_extract(x_170, x_171, x_172);
lean_dec(x_172);
lean_dec(x_171);
lean_dec_ref(x_170);
x_175 = lean_string_append(x_173, x_174);
lean_dec_ref(x_174);
x_176 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_177 = lean_string_append(x_175, x_176);
x_178 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_178, 0, x_177);
lean_ctor_set(x_178, 1, x_126);
return x_178;
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
lean_inc(x_140);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_179 = lean_ctor_get(x_140, 0);
lean_inc_ref(x_179);
x_180 = lean_ctor_get(x_140, 1);
lean_inc(x_180);
x_181 = lean_ctor_get(x_140, 2);
lean_inc(x_181);
lean_dec(x_140);
x_182 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_183 = lean_string_utf8_extract(x_179, x_180, x_181);
lean_dec(x_181);
lean_dec(x_180);
lean_dec_ref(x_179);
x_184 = lean_string_append(x_182, x_183);
lean_dec_ref(x_183);
x_185 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_186 = lean_string_append(x_184, x_185);
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_126);
return x_187;
}
}
}
else
{
lean_object* x_188; lean_object* x_189; 
lean_dec(x_127);
x_188 = lean_array_fget_borrowed(x_8, x_4);
x_189 = l_String_Slice_toNat_x3f(x_188);
if (lean_obj_tag(x_189) == 1)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_190 = lean_ctor_get(x_189, 0);
lean_inc(x_190);
lean_dec_ref(x_189);
x_191 = lean_array_fget(x_8, x_128);
lean_dec(x_8);
x_192 = l_String_Slice_toNat_x3f(x_191);
if (lean_obj_tag(x_192) == 1)
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; 
lean_dec(x_191);
x_193 = lean_ctor_get(x_192, 0);
lean_inc(x_193);
lean_dec_ref(x_192);
lean_inc(x_193);
lean_inc(x_190);
x_194 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_194, 0, x_190);
lean_ctor_set(x_194, 1, x_193);
lean_ctor_set(x_194, 2, x_4);
x_195 = lean_nat_add(x_193, x_128);
lean_dec(x_193);
x_196 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_196, 0, x_190);
lean_ctor_set(x_196, 1, x_195);
lean_ctor_set(x_196, 2, x_4);
lean_ctor_set(x_6, 1, x_125);
lean_ctor_set(x_6, 0, x_194);
x_197 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_198 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_198, 0, x_196);
lean_ctor_set(x_198, 1, x_197);
x_199 = 3;
x_200 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_200, 0, x_6);
lean_ctor_set_uint8(x_200, sizeof(void*)*1, x_199);
lean_ctor_set_uint8(x_200, sizeof(void*)*1 + 1, x_129);
x_201 = lean_array_push(x_2, x_200);
x_202 = 0;
x_203 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_203, 0, x_198);
lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_202);
lean_ctor_set_uint8(x_203, sizeof(void*)*1 + 1, x_131);
x_204 = lean_array_push(x_201, x_203);
x_205 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_205, 0, x_204);
lean_ctor_set(x_205, 1, x_126);
return x_205;
}
else
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; 
lean_dec(x_192);
lean_dec(x_190);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_206 = lean_ctor_get(x_191, 0);
lean_inc_ref(x_206);
x_207 = lean_ctor_get(x_191, 1);
lean_inc(x_207);
x_208 = lean_ctor_get(x_191, 2);
lean_inc(x_208);
lean_dec(x_191);
x_209 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_210 = lean_string_utf8_extract(x_206, x_207, x_208);
lean_dec(x_208);
lean_dec(x_207);
lean_dec_ref(x_206);
x_211 = lean_string_append(x_209, x_210);
lean_dec_ref(x_210);
x_212 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_213 = lean_string_append(x_211, x_212);
x_214 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_214, 0, x_213);
lean_ctor_set(x_214, 1, x_126);
return x_214;
}
}
else
{
lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
lean_dec(x_189);
lean_inc(x_188);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_215 = lean_ctor_get(x_188, 0);
lean_inc_ref(x_215);
x_216 = lean_ctor_get(x_188, 1);
lean_inc(x_216);
x_217 = lean_ctor_get(x_188, 2);
lean_inc(x_217);
lean_dec(x_188);
x_218 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_219 = lean_string_utf8_extract(x_215, x_216, x_217);
lean_dec(x_217);
lean_dec(x_216);
lean_dec_ref(x_215);
x_220 = lean_string_append(x_218, x_219);
lean_dec_ref(x_219);
x_221 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_222 = lean_string_append(x_220, x_221);
x_223 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_223, 0, x_222);
lean_ctor_set(x_223, 1, x_126);
return x_223;
}
}
}
else
{
lean_object* x_224; lean_object* x_225; 
lean_dec(x_127);
x_224 = lean_array_fget(x_8, x_4);
lean_dec(x_8);
x_225 = l_String_Slice_toNat_x3f(x_224);
if (lean_obj_tag(x_225) == 1)
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; uint8_t x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; 
lean_dec(x_224);
x_226 = lean_ctor_get(x_225, 0);
lean_inc(x_226);
lean_dec_ref(x_225);
lean_inc(x_226);
x_227 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_227, 0, x_226);
lean_ctor_set(x_227, 1, x_4);
lean_ctor_set(x_227, 2, x_4);
x_228 = lean_nat_add(x_226, x_128);
lean_dec(x_226);
x_229 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_229, 0, x_228);
lean_ctor_set(x_229, 1, x_4);
lean_ctor_set(x_229, 2, x_4);
lean_ctor_set(x_6, 1, x_125);
lean_ctor_set(x_6, 0, x_227);
x_230 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_231 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_231, 0, x_229);
lean_ctor_set(x_231, 1, x_230);
x_232 = 3;
x_233 = 0;
x_234 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_234, 0, x_6);
lean_ctor_set_uint8(x_234, sizeof(void*)*1, x_232);
lean_ctor_set_uint8(x_234, sizeof(void*)*1 + 1, x_233);
x_235 = lean_array_push(x_2, x_234);
x_236 = 0;
x_237 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_237, 0, x_231);
lean_ctor_set_uint8(x_237, sizeof(void*)*1, x_236);
lean_ctor_set_uint8(x_237, sizeof(void*)*1 + 1, x_129);
x_238 = lean_array_push(x_235, x_237);
x_239 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_239, 0, x_238);
lean_ctor_set(x_239, 1, x_126);
return x_239;
}
else
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
lean_dec(x_225);
lean_dec(x_125);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_240 = lean_ctor_get(x_224, 0);
lean_inc_ref(x_240);
x_241 = lean_ctor_get(x_224, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_224, 2);
lean_inc(x_242);
lean_dec(x_224);
x_243 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_244 = lean_string_utf8_extract(x_240, x_241, x_242);
lean_dec(x_242);
lean_dec(x_241);
lean_dec_ref(x_240);
x_245 = lean_string_append(x_243, x_244);
lean_dec_ref(x_244);
x_246 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_247 = lean_string_append(x_245, x_246);
x_248 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_248, 0, x_247);
lean_ctor_set(x_248, 1, x_126);
return x_248;
}
}
}
}
else
{
uint8_t x_249; 
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_249 = !lean_is_exclusive(x_10);
if (x_249 == 0)
{
return x_10;
}
else
{
lean_object* x_250; lean_object* x_251; lean_object* x_252; 
x_250 = lean_ctor_get(x_10, 0);
x_251 = lean_ctor_get(x_10, 1);
lean_inc(x_251);
lean_inc(x_250);
lean_dec(x_10);
x_252 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_252, 0, x_250);
lean_ctor_set(x_252, 1, x_251);
return x_252;
}
}
}
else
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; 
x_253 = lean_ctor_get(x_6, 0);
x_254 = lean_ctor_get(x_6, 1);
lean_inc(x_254);
lean_inc(x_253);
lean_dec(x_6);
x_255 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_254);
lean_dec_ref(x_1);
if (lean_obj_tag(x_255) == 0)
{
lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_256 = lean_ctor_get(x_255, 0);
lean_inc(x_256);
x_257 = lean_ctor_get(x_255, 1);
lean_inc(x_257);
if (lean_is_exclusive(x_255)) {
 lean_ctor_release(x_255, 0);
 lean_ctor_release(x_255, 1);
 x_258 = x_255;
} else {
 lean_dec_ref(x_255);
 x_258 = lean_box(0);
}
x_259 = lean_array_get_size(x_253);
x_260 = lean_unsigned_to_nat(1u);
x_261 = lean_nat_dec_eq(x_259, x_260);
if (x_261 == 0)
{
lean_object* x_262; uint8_t x_263; 
x_262 = lean_unsigned_to_nat(2u);
x_263 = lean_nat_dec_eq(x_259, x_262);
if (x_263 == 0)
{
lean_object* x_264; uint8_t x_265; 
x_264 = lean_unsigned_to_nat(3u);
x_265 = lean_nat_dec_eq(x_259, x_264);
if (x_265 == 0)
{
lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
lean_dec(x_256);
lean_dec(x_253);
lean_dec_ref(x_2);
x_266 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0;
x_267 = l_Nat_reprFast(x_259);
x_268 = lean_string_append(x_266, x_267);
lean_dec_ref(x_267);
x_269 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_270 = lean_string_append(x_268, x_269);
if (lean_is_scalar(x_258)) {
 x_271 = lean_alloc_ctor(1, 2, 0);
} else {
 x_271 = x_258;
 lean_ctor_set_tag(x_271, 1);
}
lean_ctor_set(x_271, 0, x_270);
lean_ctor_set(x_271, 1, x_257);
return x_271;
}
else
{
lean_object* x_272; lean_object* x_273; 
lean_dec(x_259);
x_272 = lean_array_fget_borrowed(x_253, x_4);
x_273 = l_String_Slice_toNat_x3f(x_272);
if (lean_obj_tag(x_273) == 1)
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; 
x_274 = lean_ctor_get(x_273, 0);
lean_inc(x_274);
lean_dec_ref(x_273);
x_275 = lean_array_fget_borrowed(x_253, x_260);
x_276 = l_String_Slice_toNat_x3f(x_275);
if (lean_obj_tag(x_276) == 1)
{
lean_object* x_277; lean_object* x_278; lean_object* x_279; 
x_277 = lean_ctor_get(x_276, 0);
lean_inc(x_277);
lean_dec_ref(x_276);
x_278 = lean_array_fget(x_253, x_262);
lean_dec(x_253);
x_279 = l_String_Slice_toNat_x3f(x_278);
if (lean_obj_tag(x_279) == 1)
{
lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; 
lean_dec(x_278);
x_280 = lean_ctor_get(x_279, 0);
lean_inc(x_280);
lean_dec_ref(x_279);
lean_inc(x_277);
lean_inc(x_274);
x_281 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_281, 0, x_274);
lean_ctor_set(x_281, 1, x_277);
lean_ctor_set(x_281, 2, x_280);
x_282 = lean_nat_add(x_277, x_260);
lean_dec(x_277);
x_283 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_283, 0, x_274);
lean_ctor_set(x_283, 1, x_282);
lean_ctor_set(x_283, 2, x_4);
x_284 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_284, 0, x_281);
lean_ctor_set(x_284, 1, x_256);
x_285 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_286 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_286, 0, x_283);
lean_ctor_set(x_286, 1, x_285);
x_287 = 3;
x_288 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_288, 0, x_284);
lean_ctor_set_uint8(x_288, sizeof(void*)*1, x_287);
lean_ctor_set_uint8(x_288, sizeof(void*)*1 + 1, x_263);
x_289 = lean_array_push(x_2, x_288);
x_290 = 0;
x_291 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_291, 0, x_286);
lean_ctor_set_uint8(x_291, sizeof(void*)*1, x_290);
lean_ctor_set_uint8(x_291, sizeof(void*)*1 + 1, x_265);
x_292 = lean_array_push(x_289, x_291);
if (lean_is_scalar(x_258)) {
 x_293 = lean_alloc_ctor(0, 2, 0);
} else {
 x_293 = x_258;
}
lean_ctor_set(x_293, 0, x_292);
lean_ctor_set(x_293, 1, x_257);
return x_293;
}
else
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; 
lean_dec(x_279);
lean_dec(x_277);
lean_dec(x_274);
lean_dec(x_256);
lean_dec_ref(x_2);
x_294 = lean_ctor_get(x_278, 0);
lean_inc_ref(x_294);
x_295 = lean_ctor_get(x_278, 1);
lean_inc(x_295);
x_296 = lean_ctor_get(x_278, 2);
lean_inc(x_296);
lean_dec(x_278);
x_297 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_298 = lean_string_utf8_extract(x_294, x_295, x_296);
lean_dec(x_296);
lean_dec(x_295);
lean_dec_ref(x_294);
x_299 = lean_string_append(x_297, x_298);
lean_dec_ref(x_298);
x_300 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_301 = lean_string_append(x_299, x_300);
if (lean_is_scalar(x_258)) {
 x_302 = lean_alloc_ctor(1, 2, 0);
} else {
 x_302 = x_258;
 lean_ctor_set_tag(x_302, 1);
}
lean_ctor_set(x_302, 0, x_301);
lean_ctor_set(x_302, 1, x_257);
return x_302;
}
}
else
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 
lean_dec(x_276);
lean_inc(x_275);
lean_dec(x_274);
lean_dec(x_256);
lean_dec(x_253);
lean_dec_ref(x_2);
x_303 = lean_ctor_get(x_275, 0);
lean_inc_ref(x_303);
x_304 = lean_ctor_get(x_275, 1);
lean_inc(x_304);
x_305 = lean_ctor_get(x_275, 2);
lean_inc(x_305);
lean_dec(x_275);
x_306 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_307 = lean_string_utf8_extract(x_303, x_304, x_305);
lean_dec(x_305);
lean_dec(x_304);
lean_dec_ref(x_303);
x_308 = lean_string_append(x_306, x_307);
lean_dec_ref(x_307);
x_309 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_310 = lean_string_append(x_308, x_309);
if (lean_is_scalar(x_258)) {
 x_311 = lean_alloc_ctor(1, 2, 0);
} else {
 x_311 = x_258;
 lean_ctor_set_tag(x_311, 1);
}
lean_ctor_set(x_311, 0, x_310);
lean_ctor_set(x_311, 1, x_257);
return x_311;
}
}
else
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; 
lean_dec(x_273);
lean_inc(x_272);
lean_dec(x_256);
lean_dec(x_253);
lean_dec_ref(x_2);
x_312 = lean_ctor_get(x_272, 0);
lean_inc_ref(x_312);
x_313 = lean_ctor_get(x_272, 1);
lean_inc(x_313);
x_314 = lean_ctor_get(x_272, 2);
lean_inc(x_314);
lean_dec(x_272);
x_315 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_316 = lean_string_utf8_extract(x_312, x_313, x_314);
lean_dec(x_314);
lean_dec(x_313);
lean_dec_ref(x_312);
x_317 = lean_string_append(x_315, x_316);
lean_dec_ref(x_316);
x_318 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_319 = lean_string_append(x_317, x_318);
if (lean_is_scalar(x_258)) {
 x_320 = lean_alloc_ctor(1, 2, 0);
} else {
 x_320 = x_258;
 lean_ctor_set_tag(x_320, 1);
}
lean_ctor_set(x_320, 0, x_319);
lean_ctor_set(x_320, 1, x_257);
return x_320;
}
}
}
else
{
lean_object* x_321; lean_object* x_322; 
lean_dec(x_259);
x_321 = lean_array_fget_borrowed(x_253, x_4);
x_322 = l_String_Slice_toNat_x3f(x_321);
if (lean_obj_tag(x_322) == 1)
{
lean_object* x_323; lean_object* x_324; lean_object* x_325; 
x_323 = lean_ctor_get(x_322, 0);
lean_inc(x_323);
lean_dec_ref(x_322);
x_324 = lean_array_fget(x_253, x_260);
lean_dec(x_253);
x_325 = l_String_Slice_toNat_x3f(x_324);
if (lean_obj_tag(x_325) == 1)
{
lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; 
lean_dec(x_324);
x_326 = lean_ctor_get(x_325, 0);
lean_inc(x_326);
lean_dec_ref(x_325);
lean_inc(x_326);
lean_inc(x_323);
x_327 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_327, 0, x_323);
lean_ctor_set(x_327, 1, x_326);
lean_ctor_set(x_327, 2, x_4);
x_328 = lean_nat_add(x_326, x_260);
lean_dec(x_326);
x_329 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_329, 0, x_323);
lean_ctor_set(x_329, 1, x_328);
lean_ctor_set(x_329, 2, x_4);
x_330 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_330, 0, x_327);
lean_ctor_set(x_330, 1, x_256);
x_331 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_332 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_332, 0, x_329);
lean_ctor_set(x_332, 1, x_331);
x_333 = 3;
x_334 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_334, 0, x_330);
lean_ctor_set_uint8(x_334, sizeof(void*)*1, x_333);
lean_ctor_set_uint8(x_334, sizeof(void*)*1 + 1, x_261);
x_335 = lean_array_push(x_2, x_334);
x_336 = 0;
x_337 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_337, 0, x_332);
lean_ctor_set_uint8(x_337, sizeof(void*)*1, x_336);
lean_ctor_set_uint8(x_337, sizeof(void*)*1 + 1, x_263);
x_338 = lean_array_push(x_335, x_337);
if (lean_is_scalar(x_258)) {
 x_339 = lean_alloc_ctor(0, 2, 0);
} else {
 x_339 = x_258;
}
lean_ctor_set(x_339, 0, x_338);
lean_ctor_set(x_339, 1, x_257);
return x_339;
}
else
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; 
lean_dec(x_325);
lean_dec(x_323);
lean_dec(x_256);
lean_dec_ref(x_2);
x_340 = lean_ctor_get(x_324, 0);
lean_inc_ref(x_340);
x_341 = lean_ctor_get(x_324, 1);
lean_inc(x_341);
x_342 = lean_ctor_get(x_324, 2);
lean_inc(x_342);
lean_dec(x_324);
x_343 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_344 = lean_string_utf8_extract(x_340, x_341, x_342);
lean_dec(x_342);
lean_dec(x_341);
lean_dec_ref(x_340);
x_345 = lean_string_append(x_343, x_344);
lean_dec_ref(x_344);
x_346 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_347 = lean_string_append(x_345, x_346);
if (lean_is_scalar(x_258)) {
 x_348 = lean_alloc_ctor(1, 2, 0);
} else {
 x_348 = x_258;
 lean_ctor_set_tag(x_348, 1);
}
lean_ctor_set(x_348, 0, x_347);
lean_ctor_set(x_348, 1, x_257);
return x_348;
}
}
else
{
lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
lean_dec(x_322);
lean_inc(x_321);
lean_dec(x_256);
lean_dec(x_253);
lean_dec_ref(x_2);
x_349 = lean_ctor_get(x_321, 0);
lean_inc_ref(x_349);
x_350 = lean_ctor_get(x_321, 1);
lean_inc(x_350);
x_351 = lean_ctor_get(x_321, 2);
lean_inc(x_351);
lean_dec(x_321);
x_352 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_353 = lean_string_utf8_extract(x_349, x_350, x_351);
lean_dec(x_351);
lean_dec(x_350);
lean_dec_ref(x_349);
x_354 = lean_string_append(x_352, x_353);
lean_dec_ref(x_353);
x_355 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_356 = lean_string_append(x_354, x_355);
if (lean_is_scalar(x_258)) {
 x_357 = lean_alloc_ctor(1, 2, 0);
} else {
 x_357 = x_258;
 lean_ctor_set_tag(x_357, 1);
}
lean_ctor_set(x_357, 0, x_356);
lean_ctor_set(x_357, 1, x_257);
return x_357;
}
}
}
else
{
lean_object* x_358; lean_object* x_359; 
lean_dec(x_259);
x_358 = lean_array_fget(x_253, x_4);
lean_dec(x_253);
x_359 = l_String_Slice_toNat_x3f(x_358);
if (lean_obj_tag(x_359) == 1)
{
lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; uint8_t x_367; uint8_t x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; 
lean_dec(x_358);
x_360 = lean_ctor_get(x_359, 0);
lean_inc(x_360);
lean_dec_ref(x_359);
lean_inc(x_360);
x_361 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_361, 0, x_360);
lean_ctor_set(x_361, 1, x_4);
lean_ctor_set(x_361, 2, x_4);
x_362 = lean_nat_add(x_360, x_260);
lean_dec(x_360);
x_363 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_363, 0, x_362);
lean_ctor_set(x_363, 1, x_4);
lean_ctor_set(x_363, 2, x_4);
x_364 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_364, 0, x_361);
lean_ctor_set(x_364, 1, x_256);
x_365 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_366 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_366, 0, x_363);
lean_ctor_set(x_366, 1, x_365);
x_367 = 3;
x_368 = 0;
x_369 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_369, 0, x_364);
lean_ctor_set_uint8(x_369, sizeof(void*)*1, x_367);
lean_ctor_set_uint8(x_369, sizeof(void*)*1 + 1, x_368);
x_370 = lean_array_push(x_2, x_369);
x_371 = 0;
x_372 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_372, 0, x_366);
lean_ctor_set_uint8(x_372, sizeof(void*)*1, x_371);
lean_ctor_set_uint8(x_372, sizeof(void*)*1 + 1, x_261);
x_373 = lean_array_push(x_370, x_372);
if (lean_is_scalar(x_258)) {
 x_374 = lean_alloc_ctor(0, 2, 0);
} else {
 x_374 = x_258;
}
lean_ctor_set(x_374, 0, x_373);
lean_ctor_set(x_374, 1, x_257);
return x_374;
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
lean_dec(x_359);
lean_dec(x_256);
lean_dec_ref(x_2);
x_375 = lean_ctor_get(x_358, 0);
lean_inc_ref(x_375);
x_376 = lean_ctor_get(x_358, 1);
lean_inc(x_376);
x_377 = lean_ctor_get(x_358, 2);
lean_inc(x_377);
lean_dec(x_358);
x_378 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_379 = lean_string_utf8_extract(x_375, x_376, x_377);
lean_dec(x_377);
lean_dec(x_376);
lean_dec_ref(x_375);
x_380 = lean_string_append(x_378, x_379);
lean_dec_ref(x_379);
x_381 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_382 = lean_string_append(x_380, x_381);
if (lean_is_scalar(x_258)) {
 x_383 = lean_alloc_ctor(1, 2, 0);
} else {
 x_383 = x_258;
 lean_ctor_set_tag(x_383, 1);
}
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_257);
return x_383;
}
}
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
lean_dec(x_253);
lean_dec_ref(x_2);
x_384 = lean_ctor_get(x_255, 0);
lean_inc(x_384);
x_385 = lean_ctor_get(x_255, 1);
lean_inc(x_385);
if (lean_is_exclusive(x_255)) {
 lean_ctor_release(x_255, 0);
 lean_ctor_release(x_255, 1);
 x_386 = x_255;
} else {
 lean_dec_ref(x_255);
 x_386 = lean_box(0);
}
if (lean_is_scalar(x_386)) {
 x_387 = lean_alloc_ctor(1, 2, 0);
} else {
 x_387 = x_386;
}
lean_ctor_set(x_387, 0, x_384);
lean_ctor_set(x_387, 1, x_385);
return x_387;
}
}
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid caret range: incorrect number of components: got ", 57, 57);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid caret range: `^0.0.0` is degenerate; use `=0.0.0` instead", 65, 65);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
lean_inc(x_3);
lean_inc_ref(x_1);
x_6 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_5, x_3, x_3);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_ctor_get(x_6, 1);
x_10 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_9);
lean_dec_ref(x_1);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 x_13 = x_10;
} else {
 lean_dec_ref(x_10);
 x_13 = lean_box(0);
}
x_14 = lean_array_get_size(x_8);
x_15 = lean_unsigned_to_nat(1u);
x_16 = lean_nat_dec_eq(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
x_17 = lean_unsigned_to_nat(2u);
x_18 = lean_nat_dec_eq(x_14, x_17);
if (x_18 == 0)
{
lean_object* x_19; uint8_t x_20; 
x_19 = lean_unsigned_to_nat(3u);
x_20 = lean_nat_dec_eq(x_14, x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_11);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_21 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0;
x_22 = l_Nat_reprFast(x_14);
x_23 = lean_string_append(x_21, x_22);
lean_dec_ref(x_22);
x_24 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_25 = lean_string_append(x_23, x_24);
if (lean_is_scalar(x_13)) {
 x_26 = lean_alloc_ctor(1, 2, 0);
} else {
 x_26 = x_13;
 lean_ctor_set_tag(x_26, 1);
}
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_12);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_14);
x_27 = lean_array_fget_borrowed(x_8, x_4);
x_28 = l_String_Slice_toNat_x3f(x_27);
if (lean_obj_tag(x_28) == 1)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_30 = lean_array_fget_borrowed(x_8, x_15);
x_31 = l_String_Slice_toNat_x3f(x_30);
if (lean_obj_tag(x_31) == 1)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec_ref(x_31);
x_33 = lean_array_fget(x_8, x_17);
lean_dec(x_8);
x_34 = l_String_Slice_toNat_x3f(x_33);
if (lean_obj_tag(x_34) == 1)
{
lean_object* x_35; uint8_t x_36; uint8_t x_53; 
lean_dec(x_33);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
lean_dec_ref(x_34);
x_53 = lean_nat_dec_eq(x_29, x_4);
if (x_53 == 0)
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; 
lean_dec(x_13);
lean_inc(x_29);
x_54 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_54, 0, x_29);
lean_ctor_set(x_54, 1, x_32);
lean_ctor_set(x_54, 2, x_35);
x_55 = lean_nat_add(x_29, x_15);
lean_dec(x_29);
x_56 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_56, 0, x_55);
lean_ctor_set(x_56, 1, x_4);
lean_ctor_set(x_56, 2, x_4);
x_57 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_57, 0, x_54);
lean_ctor_set(x_57, 1, x_11);
x_58 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_59 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_59, 0, x_56);
lean_ctor_set(x_59, 1, x_58);
x_60 = 3;
x_61 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_61, 0, x_57);
lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60);
lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 1, x_53);
x_62 = lean_array_push(x_2, x_61);
x_63 = 0;
x_64 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_64, 0, x_59);
lean_ctor_set_uint8(x_64, sizeof(void*)*1, x_63);
lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 1, x_20);
x_65 = lean_array_push(x_62, x_64);
lean_ctor_set(x_6, 1, x_12);
lean_ctor_set(x_6, 0, x_65);
return x_6;
}
else
{
uint8_t x_66; 
x_66 = lean_nat_dec_eq(x_32, x_4);
if (x_66 == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; 
lean_dec(x_13);
lean_inc(x_32);
lean_inc(x_29);
x_67 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_67, 0, x_29);
lean_ctor_set(x_67, 1, x_32);
lean_ctor_set(x_67, 2, x_35);
x_68 = lean_nat_add(x_32, x_15);
lean_dec(x_32);
x_69 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_69, 0, x_29);
lean_ctor_set(x_69, 1, x_68);
lean_ctor_set(x_69, 2, x_4);
x_70 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_70, 0, x_67);
lean_ctor_set(x_70, 1, x_11);
x_71 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_69);
lean_ctor_set(x_72, 1, x_71);
x_73 = 3;
x_74 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_74, 0, x_70);
lean_ctor_set_uint8(x_74, sizeof(void*)*1, x_73);
lean_ctor_set_uint8(x_74, sizeof(void*)*1 + 1, x_66);
x_75 = lean_array_push(x_2, x_74);
x_76 = 0;
x_77 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_77, 0, x_72);
lean_ctor_set_uint8(x_77, sizeof(void*)*1, x_76);
lean_ctor_set_uint8(x_77, sizeof(void*)*1 + 1, x_53);
x_78 = lean_array_push(x_75, x_77);
lean_ctor_set(x_6, 1, x_12);
lean_ctor_set(x_6, 0, x_78);
return x_6;
}
else
{
uint8_t x_79; 
lean_free_object(x_6);
x_79 = lean_nat_dec_eq(x_35, x_4);
if (x_79 == 0)
{
x_36 = x_79;
goto block_52;
}
else
{
lean_object* x_80; uint8_t x_81; 
x_80 = lean_string_utf8_byte_size(x_11);
x_81 = lean_nat_dec_eq(x_80, x_4);
lean_dec(x_80);
x_36 = x_81;
goto block_52;
}
}
}
block_52:
{
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
lean_inc(x_35);
lean_inc(x_32);
lean_inc(x_29);
x_37 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_37, 0, x_29);
lean_ctor_set(x_37, 1, x_32);
lean_ctor_set(x_37, 2, x_35);
x_38 = lean_nat_add(x_35, x_15);
lean_dec(x_35);
x_39 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_39, 0, x_29);
lean_ctor_set(x_39, 1, x_32);
lean_ctor_set(x_39, 2, x_38);
x_40 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_40, 0, x_37);
lean_ctor_set(x_40, 1, x_11);
x_41 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_39);
lean_ctor_set(x_42, 1, x_41);
x_43 = 3;
x_44 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_44, 0, x_40);
lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_43);
lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 1, x_36);
x_45 = lean_array_push(x_2, x_44);
x_46 = 0;
x_47 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_47, 0, x_42);
lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46);
lean_ctor_set_uint8(x_47, sizeof(void*)*1 + 1, x_20);
x_48 = lean_array_push(x_45, x_47);
if (lean_is_scalar(x_13)) {
 x_49 = lean_alloc_ctor(0, 2, 0);
} else {
 x_49 = x_13;
}
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_12);
return x_49;
}
else
{
lean_object* x_50; lean_object* x_51; 
lean_dec(x_35);
lean_dec(x_32);
lean_dec(x_29);
lean_dec(x_11);
lean_dec_ref(x_2);
x_50 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1;
if (lean_is_scalar(x_13)) {
 x_51 = lean_alloc_ctor(1, 2, 0);
} else {
 x_51 = x_13;
 lean_ctor_set_tag(x_51, 1);
}
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set(x_51, 1, x_12);
return x_51;
}
}
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_34);
lean_dec(x_32);
lean_dec(x_29);
lean_dec(x_11);
lean_free_object(x_6);
lean_dec_ref(x_2);
x_82 = lean_ctor_get(x_33, 0);
lean_inc_ref(x_82);
x_83 = lean_ctor_get(x_33, 1);
lean_inc(x_83);
x_84 = lean_ctor_get(x_33, 2);
lean_inc(x_84);
lean_dec(x_33);
x_85 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_86 = lean_string_utf8_extract(x_82, x_83, x_84);
lean_dec(x_84);
lean_dec(x_83);
lean_dec_ref(x_82);
x_87 = lean_string_append(x_85, x_86);
lean_dec_ref(x_86);
x_88 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_89 = lean_string_append(x_87, x_88);
if (lean_is_scalar(x_13)) {
 x_90 = lean_alloc_ctor(1, 2, 0);
} else {
 x_90 = x_13;
 lean_ctor_set_tag(x_90, 1);
}
lean_ctor_set(x_90, 0, x_89);
lean_ctor_set(x_90, 1, x_12);
return x_90;
}
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 
lean_dec(x_31);
lean_inc(x_30);
lean_dec(x_29);
lean_dec(x_11);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_91 = lean_ctor_get(x_30, 0);
lean_inc_ref(x_91);
x_92 = lean_ctor_get(x_30, 1);
lean_inc(x_92);
x_93 = lean_ctor_get(x_30, 2);
lean_inc(x_93);
lean_dec(x_30);
x_94 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_95 = lean_string_utf8_extract(x_91, x_92, x_93);
lean_dec(x_93);
lean_dec(x_92);
lean_dec_ref(x_91);
x_96 = lean_string_append(x_94, x_95);
lean_dec_ref(x_95);
x_97 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_98 = lean_string_append(x_96, x_97);
if (lean_is_scalar(x_13)) {
 x_99 = lean_alloc_ctor(1, 2, 0);
} else {
 x_99 = x_13;
 lean_ctor_set_tag(x_99, 1);
}
lean_ctor_set(x_99, 0, x_98);
lean_ctor_set(x_99, 1, x_12);
return x_99;
}
}
else
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
lean_dec(x_28);
lean_inc(x_27);
lean_dec(x_11);
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_100 = lean_ctor_get(x_27, 0);
lean_inc_ref(x_100);
x_101 = lean_ctor_get(x_27, 1);
lean_inc(x_101);
x_102 = lean_ctor_get(x_27, 2);
lean_inc(x_102);
lean_dec(x_27);
x_103 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_104 = lean_string_utf8_extract(x_100, x_101, x_102);
lean_dec(x_102);
lean_dec(x_101);
lean_dec_ref(x_100);
x_105 = lean_string_append(x_103, x_104);
lean_dec_ref(x_104);
x_106 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_107 = lean_string_append(x_105, x_106);
if (lean_is_scalar(x_13)) {
 x_108 = lean_alloc_ctor(1, 2, 0);
} else {
 x_108 = x_13;
 lean_ctor_set_tag(x_108, 1);
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_12);
return x_108;
}
}
}
else
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_14);
lean_free_object(x_6);
x_109 = lean_array_fget_borrowed(x_8, x_4);
x_110 = l_String_Slice_toNat_x3f(x_109);
if (lean_obj_tag(x_110) == 1)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_111 = lean_ctor_get(x_110, 0);
lean_inc(x_111);
lean_dec_ref(x_110);
x_112 = lean_array_fget(x_8, x_15);
lean_dec(x_8);
x_113 = l_String_Slice_toNat_x3f(x_112);
if (lean_obj_tag(x_113) == 1)
{
lean_object* x_114; uint8_t x_115; 
lean_dec(x_112);
x_114 = lean_ctor_get(x_113, 0);
lean_inc(x_114);
lean_dec_ref(x_113);
x_115 = lean_nat_dec_eq(x_111, x_4);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_inc(x_111);
x_116 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_116, 0, x_111);
lean_ctor_set(x_116, 1, x_114);
lean_ctor_set(x_116, 2, x_4);
x_117 = lean_nat_add(x_111, x_15);
lean_dec(x_111);
x_118 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_4);
lean_ctor_set(x_118, 2, x_4);
x_119 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_119, 0, x_116);
lean_ctor_set(x_119, 1, x_11);
x_120 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_121 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_121, 0, x_118);
lean_ctor_set(x_121, 1, x_120);
x_122 = 3;
x_123 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_123, 0, x_119);
lean_ctor_set_uint8(x_123, sizeof(void*)*1, x_122);
lean_ctor_set_uint8(x_123, sizeof(void*)*1 + 1, x_115);
x_124 = lean_array_push(x_2, x_123);
x_125 = 0;
x_126 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_126, 0, x_121);
lean_ctor_set_uint8(x_126, sizeof(void*)*1, x_125);
lean_ctor_set_uint8(x_126, sizeof(void*)*1 + 1, x_18);
x_127 = lean_array_push(x_124, x_126);
if (lean_is_scalar(x_13)) {
 x_128 = lean_alloc_ctor(0, 2, 0);
} else {
 x_128 = x_13;
}
lean_ctor_set(x_128, 0, x_127);
lean_ctor_set(x_128, 1, x_12);
return x_128;
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
lean_inc(x_114);
lean_inc(x_111);
x_129 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_129, 0, x_111);
lean_ctor_set(x_129, 1, x_114);
lean_ctor_set(x_129, 2, x_4);
x_130 = lean_nat_add(x_114, x_15);
lean_dec(x_114);
x_131 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_131, 0, x_111);
lean_ctor_set(x_131, 1, x_130);
lean_ctor_set(x_131, 2, x_4);
x_132 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_132, 0, x_129);
lean_ctor_set(x_132, 1, x_11);
x_133 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_134 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_134, 0, x_131);
lean_ctor_set(x_134, 1, x_133);
x_135 = 3;
x_136 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_136, 0, x_132);
lean_ctor_set_uint8(x_136, sizeof(void*)*1, x_135);
lean_ctor_set_uint8(x_136, sizeof(void*)*1 + 1, x_16);
x_137 = lean_array_push(x_2, x_136);
x_138 = 0;
x_139 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_139, 0, x_134);
lean_ctor_set_uint8(x_139, sizeof(void*)*1, x_138);
lean_ctor_set_uint8(x_139, sizeof(void*)*1 + 1, x_115);
x_140 = lean_array_push(x_137, x_139);
if (lean_is_scalar(x_13)) {
 x_141 = lean_alloc_ctor(0, 2, 0);
} else {
 x_141 = x_13;
}
lean_ctor_set(x_141, 0, x_140);
lean_ctor_set(x_141, 1, x_12);
return x_141;
}
}
else
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; 
lean_dec(x_113);
lean_dec(x_111);
lean_dec(x_11);
lean_dec_ref(x_2);
x_142 = lean_ctor_get(x_112, 0);
lean_inc_ref(x_142);
x_143 = lean_ctor_get(x_112, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_112, 2);
lean_inc(x_144);
lean_dec(x_112);
x_145 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_146 = lean_string_utf8_extract(x_142, x_143, x_144);
lean_dec(x_144);
lean_dec(x_143);
lean_dec_ref(x_142);
x_147 = lean_string_append(x_145, x_146);
lean_dec_ref(x_146);
x_148 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_149 = lean_string_append(x_147, x_148);
if (lean_is_scalar(x_13)) {
 x_150 = lean_alloc_ctor(1, 2, 0);
} else {
 x_150 = x_13;
 lean_ctor_set_tag(x_150, 1);
}
lean_ctor_set(x_150, 0, x_149);
lean_ctor_set(x_150, 1, x_12);
return x_150;
}
}
else
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
lean_dec(x_110);
lean_inc(x_109);
lean_dec(x_11);
lean_dec(x_8);
lean_dec_ref(x_2);
x_151 = lean_ctor_get(x_109, 0);
lean_inc_ref(x_151);
x_152 = lean_ctor_get(x_109, 1);
lean_inc(x_152);
x_153 = lean_ctor_get(x_109, 2);
lean_inc(x_153);
lean_dec(x_109);
x_154 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_155 = lean_string_utf8_extract(x_151, x_152, x_153);
lean_dec(x_153);
lean_dec(x_152);
lean_dec_ref(x_151);
x_156 = lean_string_append(x_154, x_155);
lean_dec_ref(x_155);
x_157 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_158 = lean_string_append(x_156, x_157);
if (lean_is_scalar(x_13)) {
 x_159 = lean_alloc_ctor(1, 2, 0);
} else {
 x_159 = x_13;
 lean_ctor_set_tag(x_159, 1);
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_12);
return x_159;
}
}
}
else
{
lean_object* x_160; lean_object* x_161; 
lean_dec(x_14);
lean_free_object(x_6);
x_160 = lean_array_fget(x_8, x_4);
lean_dec(x_8);
x_161 = l_String_Slice_toNat_x3f(x_160);
if (lean_obj_tag(x_161) == 1)
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; 
lean_dec(x_160);
x_162 = lean_ctor_get(x_161, 0);
lean_inc(x_162);
lean_dec_ref(x_161);
lean_inc(x_162);
x_163 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_4);
lean_ctor_set(x_163, 2, x_4);
x_164 = lean_nat_add(x_162, x_15);
lean_dec(x_162);
x_165 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_165, 0, x_164);
lean_ctor_set(x_165, 1, x_4);
lean_ctor_set(x_165, 2, x_4);
x_166 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_166, 0, x_163);
lean_ctor_set(x_166, 1, x_11);
x_167 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_168 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_168, 0, x_165);
lean_ctor_set(x_168, 1, x_167);
x_169 = 3;
x_170 = 0;
x_171 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set_uint8(x_171, sizeof(void*)*1, x_169);
lean_ctor_set_uint8(x_171, sizeof(void*)*1 + 1, x_170);
x_172 = lean_array_push(x_2, x_171);
x_173 = 0;
x_174 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_174, 0, x_168);
lean_ctor_set_uint8(x_174, sizeof(void*)*1, x_173);
lean_ctor_set_uint8(x_174, sizeof(void*)*1 + 1, x_16);
x_175 = lean_array_push(x_172, x_174);
if (lean_is_scalar(x_13)) {
 x_176 = lean_alloc_ctor(0, 2, 0);
} else {
 x_176 = x_13;
}
lean_ctor_set(x_176, 0, x_175);
lean_ctor_set(x_176, 1, x_12);
return x_176;
}
else
{
lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; 
lean_dec(x_161);
lean_dec(x_11);
lean_dec_ref(x_2);
x_177 = lean_ctor_get(x_160, 0);
lean_inc_ref(x_177);
x_178 = lean_ctor_get(x_160, 1);
lean_inc(x_178);
x_179 = lean_ctor_get(x_160, 2);
lean_inc(x_179);
lean_dec(x_160);
x_180 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_181 = lean_string_utf8_extract(x_177, x_178, x_179);
lean_dec(x_179);
lean_dec(x_178);
lean_dec_ref(x_177);
x_182 = lean_string_append(x_180, x_181);
lean_dec_ref(x_181);
x_183 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_184 = lean_string_append(x_182, x_183);
if (lean_is_scalar(x_13)) {
 x_185 = lean_alloc_ctor(1, 2, 0);
} else {
 x_185 = x_13;
 lean_ctor_set_tag(x_185, 1);
}
lean_ctor_set(x_185, 0, x_184);
lean_ctor_set(x_185, 1, x_12);
return x_185;
}
}
}
else
{
uint8_t x_186; 
lean_free_object(x_6);
lean_dec(x_8);
lean_dec_ref(x_2);
x_186 = !lean_is_exclusive(x_10);
if (x_186 == 0)
{
return x_10;
}
else
{
lean_object* x_187; lean_object* x_188; lean_object* x_189; 
x_187 = lean_ctor_get(x_10, 0);
x_188 = lean_ctor_get(x_10, 1);
lean_inc(x_188);
lean_inc(x_187);
lean_dec(x_10);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_187);
lean_ctor_set(x_189, 1, x_188);
return x_189;
}
}
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_190 = lean_ctor_get(x_6, 0);
x_191 = lean_ctor_get(x_6, 1);
lean_inc(x_191);
lean_inc(x_190);
lean_dec(x_6);
x_192 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr(x_1, x_191);
lean_dec_ref(x_1);
if (lean_obj_tag(x_192) == 0)
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; 
x_193 = lean_ctor_get(x_192, 0);
lean_inc(x_193);
x_194 = lean_ctor_get(x_192, 1);
lean_inc(x_194);
if (lean_is_exclusive(x_192)) {
 lean_ctor_release(x_192, 0);
 lean_ctor_release(x_192, 1);
 x_195 = x_192;
} else {
 lean_dec_ref(x_192);
 x_195 = lean_box(0);
}
x_196 = lean_array_get_size(x_190);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_dec_eq(x_196, x_197);
if (x_198 == 0)
{
lean_object* x_199; uint8_t x_200; 
x_199 = lean_unsigned_to_nat(2u);
x_200 = lean_nat_dec_eq(x_196, x_199);
if (x_200 == 0)
{
lean_object* x_201; uint8_t x_202; 
x_201 = lean_unsigned_to_nat(3u);
x_202 = lean_nat_dec_eq(x_196, x_201);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; 
lean_dec(x_193);
lean_dec(x_190);
lean_dec_ref(x_2);
x_203 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0;
x_204 = l_Nat_reprFast(x_196);
x_205 = lean_string_append(x_203, x_204);
lean_dec_ref(x_204);
x_206 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_207 = lean_string_append(x_205, x_206);
if (lean_is_scalar(x_195)) {
 x_208 = lean_alloc_ctor(1, 2, 0);
} else {
 x_208 = x_195;
 lean_ctor_set_tag(x_208, 1);
}
lean_ctor_set(x_208, 0, x_207);
lean_ctor_set(x_208, 1, x_194);
return x_208;
}
else
{
lean_object* x_209; lean_object* x_210; 
lean_dec(x_196);
x_209 = lean_array_fget_borrowed(x_190, x_4);
x_210 = l_String_Slice_toNat_x3f(x_209);
if (lean_obj_tag(x_210) == 1)
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; 
x_211 = lean_ctor_get(x_210, 0);
lean_inc(x_211);
lean_dec_ref(x_210);
x_212 = lean_array_fget_borrowed(x_190, x_197);
x_213 = l_String_Slice_toNat_x3f(x_212);
if (lean_obj_tag(x_213) == 1)
{
lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_214 = lean_ctor_get(x_213, 0);
lean_inc(x_214);
lean_dec_ref(x_213);
x_215 = lean_array_fget(x_190, x_199);
lean_dec(x_190);
x_216 = l_String_Slice_toNat_x3f(x_215);
if (lean_obj_tag(x_216) == 1)
{
lean_object* x_217; uint8_t x_218; uint8_t x_235; 
lean_dec(x_215);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
lean_dec_ref(x_216);
x_235 = lean_nat_dec_eq(x_211, x_4);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
lean_dec(x_195);
lean_inc(x_211);
x_236 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_236, 0, x_211);
lean_ctor_set(x_236, 1, x_214);
lean_ctor_set(x_236, 2, x_217);
x_237 = lean_nat_add(x_211, x_197);
lean_dec(x_211);
x_238 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_238, 0, x_237);
lean_ctor_set(x_238, 1, x_4);
lean_ctor_set(x_238, 2, x_4);
x_239 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_239, 0, x_236);
lean_ctor_set(x_239, 1, x_193);
x_240 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_241 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_241, 0, x_238);
lean_ctor_set(x_241, 1, x_240);
x_242 = 3;
x_243 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_243, 0, x_239);
lean_ctor_set_uint8(x_243, sizeof(void*)*1, x_242);
lean_ctor_set_uint8(x_243, sizeof(void*)*1 + 1, x_235);
x_244 = lean_array_push(x_2, x_243);
x_245 = 0;
x_246 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_246, 0, x_241);
lean_ctor_set_uint8(x_246, sizeof(void*)*1, x_245);
lean_ctor_set_uint8(x_246, sizeof(void*)*1 + 1, x_202);
x_247 = lean_array_push(x_244, x_246);
x_248 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_248, 0, x_247);
lean_ctor_set(x_248, 1, x_194);
return x_248;
}
else
{
uint8_t x_249; 
x_249 = lean_nat_dec_eq(x_214, x_4);
if (x_249 == 0)
{
lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; 
lean_dec(x_195);
lean_inc(x_214);
lean_inc(x_211);
x_250 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_250, 0, x_211);
lean_ctor_set(x_250, 1, x_214);
lean_ctor_set(x_250, 2, x_217);
x_251 = lean_nat_add(x_214, x_197);
lean_dec(x_214);
x_252 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_252, 0, x_211);
lean_ctor_set(x_252, 1, x_251);
lean_ctor_set(x_252, 2, x_4);
x_253 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_253, 0, x_250);
lean_ctor_set(x_253, 1, x_193);
x_254 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_255 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_255, 0, x_252);
lean_ctor_set(x_255, 1, x_254);
x_256 = 3;
x_257 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_257, 0, x_253);
lean_ctor_set_uint8(x_257, sizeof(void*)*1, x_256);
lean_ctor_set_uint8(x_257, sizeof(void*)*1 + 1, x_249);
x_258 = lean_array_push(x_2, x_257);
x_259 = 0;
x_260 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_260, 0, x_255);
lean_ctor_set_uint8(x_260, sizeof(void*)*1, x_259);
lean_ctor_set_uint8(x_260, sizeof(void*)*1 + 1, x_235);
x_261 = lean_array_push(x_258, x_260);
x_262 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_262, 0, x_261);
lean_ctor_set(x_262, 1, x_194);
return x_262;
}
else
{
uint8_t x_263; 
x_263 = lean_nat_dec_eq(x_217, x_4);
if (x_263 == 0)
{
x_218 = x_263;
goto block_234;
}
else
{
lean_object* x_264; uint8_t x_265; 
x_264 = lean_string_utf8_byte_size(x_193);
x_265 = lean_nat_dec_eq(x_264, x_4);
lean_dec(x_264);
x_218 = x_265;
goto block_234;
}
}
}
block_234:
{
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; 
lean_inc(x_217);
lean_inc(x_214);
lean_inc(x_211);
x_219 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_219, 0, x_211);
lean_ctor_set(x_219, 1, x_214);
lean_ctor_set(x_219, 2, x_217);
x_220 = lean_nat_add(x_217, x_197);
lean_dec(x_217);
x_221 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_221, 0, x_211);
lean_ctor_set(x_221, 1, x_214);
lean_ctor_set(x_221, 2, x_220);
x_222 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_222, 0, x_219);
lean_ctor_set(x_222, 1, x_193);
x_223 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_224 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_224, 0, x_221);
lean_ctor_set(x_224, 1, x_223);
x_225 = 3;
x_226 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_226, 0, x_222);
lean_ctor_set_uint8(x_226, sizeof(void*)*1, x_225);
lean_ctor_set_uint8(x_226, sizeof(void*)*1 + 1, x_218);
x_227 = lean_array_push(x_2, x_226);
x_228 = 0;
x_229 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_229, 0, x_224);
lean_ctor_set_uint8(x_229, sizeof(void*)*1, x_228);
lean_ctor_set_uint8(x_229, sizeof(void*)*1 + 1, x_202);
x_230 = lean_array_push(x_227, x_229);
if (lean_is_scalar(x_195)) {
 x_231 = lean_alloc_ctor(0, 2, 0);
} else {
 x_231 = x_195;
}
lean_ctor_set(x_231, 0, x_230);
lean_ctor_set(x_231, 1, x_194);
return x_231;
}
else
{
lean_object* x_232; lean_object* x_233; 
lean_dec(x_217);
lean_dec(x_214);
lean_dec(x_211);
lean_dec(x_193);
lean_dec_ref(x_2);
x_232 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1;
if (lean_is_scalar(x_195)) {
 x_233 = lean_alloc_ctor(1, 2, 0);
} else {
 x_233 = x_195;
 lean_ctor_set_tag(x_233, 1);
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_194);
return x_233;
}
}
}
else
{
lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; 
lean_dec(x_216);
lean_dec(x_214);
lean_dec(x_211);
lean_dec(x_193);
lean_dec_ref(x_2);
x_266 = lean_ctor_get(x_215, 0);
lean_inc_ref(x_266);
x_267 = lean_ctor_get(x_215, 1);
lean_inc(x_267);
x_268 = lean_ctor_get(x_215, 2);
lean_inc(x_268);
lean_dec(x_215);
x_269 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3;
x_270 = lean_string_utf8_extract(x_266, x_267, x_268);
lean_dec(x_268);
lean_dec(x_267);
lean_dec_ref(x_266);
x_271 = lean_string_append(x_269, x_270);
lean_dec_ref(x_270);
x_272 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_273 = lean_string_append(x_271, x_272);
if (lean_is_scalar(x_195)) {
 x_274 = lean_alloc_ctor(1, 2, 0);
} else {
 x_274 = x_195;
 lean_ctor_set_tag(x_274, 1);
}
lean_ctor_set(x_274, 0, x_273);
lean_ctor_set(x_274, 1, x_194);
return x_274;
}
}
else
{
lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; 
lean_dec(x_213);
lean_inc(x_212);
lean_dec(x_211);
lean_dec(x_193);
lean_dec(x_190);
lean_dec_ref(x_2);
x_275 = lean_ctor_get(x_212, 0);
lean_inc_ref(x_275);
x_276 = lean_ctor_get(x_212, 1);
lean_inc(x_276);
x_277 = lean_ctor_get(x_212, 2);
lean_inc(x_277);
lean_dec(x_212);
x_278 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_279 = lean_string_utf8_extract(x_275, x_276, x_277);
lean_dec(x_277);
lean_dec(x_276);
lean_dec_ref(x_275);
x_280 = lean_string_append(x_278, x_279);
lean_dec_ref(x_279);
x_281 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_282 = lean_string_append(x_280, x_281);
if (lean_is_scalar(x_195)) {
 x_283 = lean_alloc_ctor(1, 2, 0);
} else {
 x_283 = x_195;
 lean_ctor_set_tag(x_283, 1);
}
lean_ctor_set(x_283, 0, x_282);
lean_ctor_set(x_283, 1, x_194);
return x_283;
}
}
else
{
lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 
lean_dec(x_210);
lean_inc(x_209);
lean_dec(x_193);
lean_dec(x_190);
lean_dec_ref(x_2);
x_284 = lean_ctor_get(x_209, 0);
lean_inc_ref(x_284);
x_285 = lean_ctor_get(x_209, 1);
lean_inc(x_285);
x_286 = lean_ctor_get(x_209, 2);
lean_inc(x_286);
lean_dec(x_209);
x_287 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_288 = lean_string_utf8_extract(x_284, x_285, x_286);
lean_dec(x_286);
lean_dec(x_285);
lean_dec_ref(x_284);
x_289 = lean_string_append(x_287, x_288);
lean_dec_ref(x_288);
x_290 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_291 = lean_string_append(x_289, x_290);
if (lean_is_scalar(x_195)) {
 x_292 = lean_alloc_ctor(1, 2, 0);
} else {
 x_292 = x_195;
 lean_ctor_set_tag(x_292, 1);
}
lean_ctor_set(x_292, 0, x_291);
lean_ctor_set(x_292, 1, x_194);
return x_292;
}
}
}
else
{
lean_object* x_293; lean_object* x_294; 
lean_dec(x_196);
x_293 = lean_array_fget_borrowed(x_190, x_4);
x_294 = l_String_Slice_toNat_x3f(x_293);
if (lean_obj_tag(x_294) == 1)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_294, 0);
lean_inc(x_295);
lean_dec_ref(x_294);
x_296 = lean_array_fget(x_190, x_197);
lean_dec(x_190);
x_297 = l_String_Slice_toNat_x3f(x_296);
if (lean_obj_tag(x_297) == 1)
{
lean_object* x_298; uint8_t x_299; 
lean_dec(x_296);
x_298 = lean_ctor_get(x_297, 0);
lean_inc(x_298);
lean_dec_ref(x_297);
x_299 = lean_nat_dec_eq(x_295, x_4);
if (x_299 == 0)
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 
lean_inc(x_295);
x_300 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_300, 0, x_295);
lean_ctor_set(x_300, 1, x_298);
lean_ctor_set(x_300, 2, x_4);
x_301 = lean_nat_add(x_295, x_197);
lean_dec(x_295);
x_302 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_302, 0, x_301);
lean_ctor_set(x_302, 1, x_4);
lean_ctor_set(x_302, 2, x_4);
x_303 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_303, 0, x_300);
lean_ctor_set(x_303, 1, x_193);
x_304 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_305 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_305, 0, x_302);
lean_ctor_set(x_305, 1, x_304);
x_306 = 3;
x_307 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_307, 0, x_303);
lean_ctor_set_uint8(x_307, sizeof(void*)*1, x_306);
lean_ctor_set_uint8(x_307, sizeof(void*)*1 + 1, x_299);
x_308 = lean_array_push(x_2, x_307);
x_309 = 0;
x_310 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_310, 0, x_305);
lean_ctor_set_uint8(x_310, sizeof(void*)*1, x_309);
lean_ctor_set_uint8(x_310, sizeof(void*)*1 + 1, x_200);
x_311 = lean_array_push(x_308, x_310);
if (lean_is_scalar(x_195)) {
 x_312 = lean_alloc_ctor(0, 2, 0);
} else {
 x_312 = x_195;
}
lean_ctor_set(x_312, 0, x_311);
lean_ctor_set(x_312, 1, x_194);
return x_312;
}
else
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; 
lean_inc(x_298);
lean_inc(x_295);
x_313 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_313, 0, x_295);
lean_ctor_set(x_313, 1, x_298);
lean_ctor_set(x_313, 2, x_4);
x_314 = lean_nat_add(x_298, x_197);
lean_dec(x_298);
x_315 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_315, 0, x_295);
lean_ctor_set(x_315, 1, x_314);
lean_ctor_set(x_315, 2, x_4);
x_316 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_316, 0, x_313);
lean_ctor_set(x_316, 1, x_193);
x_317 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_318 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_318, 0, x_315);
lean_ctor_set(x_318, 1, x_317);
x_319 = 3;
x_320 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_320, 0, x_316);
lean_ctor_set_uint8(x_320, sizeof(void*)*1, x_319);
lean_ctor_set_uint8(x_320, sizeof(void*)*1 + 1, x_198);
x_321 = lean_array_push(x_2, x_320);
x_322 = 0;
x_323 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_323, 0, x_318);
lean_ctor_set_uint8(x_323, sizeof(void*)*1, x_322);
lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 1, x_299);
x_324 = lean_array_push(x_321, x_323);
if (lean_is_scalar(x_195)) {
 x_325 = lean_alloc_ctor(0, 2, 0);
} else {
 x_325 = x_195;
}
lean_ctor_set(x_325, 0, x_324);
lean_ctor_set(x_325, 1, x_194);
return x_325;
}
}
else
{
lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 
lean_dec(x_297);
lean_dec(x_295);
lean_dec(x_193);
lean_dec_ref(x_2);
x_326 = lean_ctor_get(x_296, 0);
lean_inc_ref(x_326);
x_327 = lean_ctor_get(x_296, 1);
lean_inc(x_327);
x_328 = lean_ctor_get(x_296, 2);
lean_inc(x_328);
lean_dec(x_296);
x_329 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4;
x_330 = lean_string_utf8_extract(x_326, x_327, x_328);
lean_dec(x_328);
lean_dec(x_327);
lean_dec_ref(x_326);
x_331 = lean_string_append(x_329, x_330);
lean_dec_ref(x_330);
x_332 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_333 = lean_string_append(x_331, x_332);
if (lean_is_scalar(x_195)) {
 x_334 = lean_alloc_ctor(1, 2, 0);
} else {
 x_334 = x_195;
 lean_ctor_set_tag(x_334, 1);
}
lean_ctor_set(x_334, 0, x_333);
lean_ctor_set(x_334, 1, x_194);
return x_334;
}
}
else
{
lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; 
lean_dec(x_294);
lean_inc(x_293);
lean_dec(x_193);
lean_dec(x_190);
lean_dec_ref(x_2);
x_335 = lean_ctor_get(x_293, 0);
lean_inc_ref(x_335);
x_336 = lean_ctor_get(x_293, 1);
lean_inc(x_336);
x_337 = lean_ctor_get(x_293, 2);
lean_inc(x_337);
lean_dec(x_293);
x_338 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_339 = lean_string_utf8_extract(x_335, x_336, x_337);
lean_dec(x_337);
lean_dec(x_336);
lean_dec_ref(x_335);
x_340 = lean_string_append(x_338, x_339);
lean_dec_ref(x_339);
x_341 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_342 = lean_string_append(x_340, x_341);
if (lean_is_scalar(x_195)) {
 x_343 = lean_alloc_ctor(1, 2, 0);
} else {
 x_343 = x_195;
 lean_ctor_set_tag(x_343, 1);
}
lean_ctor_set(x_343, 0, x_342);
lean_ctor_set(x_343, 1, x_194);
return x_343;
}
}
}
else
{
lean_object* x_344; lean_object* x_345; 
lean_dec(x_196);
x_344 = lean_array_fget(x_190, x_4);
lean_dec(x_190);
x_345 = l_String_Slice_toNat_x3f(x_344);
if (lean_obj_tag(x_345) == 1)
{
lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; uint8_t x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; 
lean_dec(x_344);
x_346 = lean_ctor_get(x_345, 0);
lean_inc(x_346);
lean_dec_ref(x_345);
lean_inc(x_346);
x_347 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_347, 0, x_346);
lean_ctor_set(x_347, 1, x_4);
lean_ctor_set(x_347, 2, x_4);
x_348 = lean_nat_add(x_346, x_197);
lean_dec(x_346);
x_349 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_349, 0, x_348);
lean_ctor_set(x_349, 1, x_4);
lean_ctor_set(x_349, 2, x_4);
x_350 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_350, 0, x_347);
lean_ctor_set(x_350, 1, x_193);
x_351 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_352 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_352, 0, x_349);
lean_ctor_set(x_352, 1, x_351);
x_353 = 3;
x_354 = 0;
x_355 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_355, 0, x_350);
lean_ctor_set_uint8(x_355, sizeof(void*)*1, x_353);
lean_ctor_set_uint8(x_355, sizeof(void*)*1 + 1, x_354);
x_356 = lean_array_push(x_2, x_355);
x_357 = 0;
x_358 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_358, 0, x_352);
lean_ctor_set_uint8(x_358, sizeof(void*)*1, x_357);
lean_ctor_set_uint8(x_358, sizeof(void*)*1 + 1, x_198);
x_359 = lean_array_push(x_356, x_358);
if (lean_is_scalar(x_195)) {
 x_360 = lean_alloc_ctor(0, 2, 0);
} else {
 x_360 = x_195;
}
lean_ctor_set(x_360, 0, x_359);
lean_ctor_set(x_360, 1, x_194);
return x_360;
}
else
{
lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; 
lean_dec(x_345);
lean_dec(x_193);
lean_dec_ref(x_2);
x_361 = lean_ctor_get(x_344, 0);
lean_inc_ref(x_361);
x_362 = lean_ctor_get(x_344, 1);
lean_inc(x_362);
x_363 = lean_ctor_get(x_344, 2);
lean_inc(x_363);
lean_dec(x_344);
x_364 = l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5;
x_365 = lean_string_utf8_extract(x_361, x_362, x_363);
lean_dec(x_363);
lean_dec(x_362);
lean_dec_ref(x_361);
x_366 = lean_string_append(x_364, x_365);
lean_dec_ref(x_365);
x_367 = l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2;
x_368 = lean_string_append(x_366, x_367);
if (lean_is_scalar(x_195)) {
 x_369 = lean_alloc_ctor(1, 2, 0);
} else {
 x_369 = x_195;
 lean_ctor_set_tag(x_369, 1);
}
lean_ctor_set(x_369, 0, x_368);
lean_ctor_set(x_369, 1, x_194);
return x_369;
}
}
}
else
{
lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; 
lean_dec(x_190);
lean_dec_ref(x_2);
x_370 = lean_ctor_get(x_192, 0);
lean_inc(x_370);
x_371 = lean_ctor_get(x_192, 1);
lean_inc(x_371);
if (lean_is_exclusive(x_192)) {
 lean_ctor_release(x_192, 0);
 lean_ctor_release(x_192, 1);
 x_372 = x_192;
} else {
 lean_dec_ref(x_192);
 x_372 = lean_box(0);
}
if (lean_is_scalar(x_372)) {
 x_373 = lean_alloc_ctor(1, 2, 0);
} else {
 x_373 = x_372;
}
lean_ctor_set(x_373, 0, x_370);
lean_ctor_set(x_373, 1, x_371);
return x_373;
}
}
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid version range: bare versions are not supported; if you want to pin a specific version, use '=' before the full version; otherwise, use '≥' to support it and future versions", 182, 180);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid patch version: components after a wildcard must be wildcards", 68, 68);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid minor version: components after a wildcard must be wildcards", 68, 68);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid wildcard range: incorrect number of components: got ", 60, 60);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid wildcard range: wildcard versions do not support suffixes", 65, 65);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_8; lean_object* x_13; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_167; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
x_17 = lean_unsigned_to_nat(0u);
x_115 = l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0;
lean_inc(x_3);
lean_inc_ref(x_1);
x_116 = l___private_Lake_Util_Version_0__Lake_parseVerComponents_go___redArg(x_1, x_115, x_3, x_3);
x_117 = lean_ctor_get(x_116, 0);
lean_inc(x_117);
x_118 = lean_ctor_get(x_116, 1);
lean_inc(x_118);
if (lean_is_exclusive(x_116)) {
 lean_ctor_release(x_116, 0);
 lean_ctor_release(x_116, 1);
 x_119 = x_116;
} else {
 lean_dec_ref(x_116);
 x_119 = lean_box(0);
}
x_178 = lean_string_utf8_byte_size(x_1);
x_179 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_179, 0, x_1);
lean_ctor_set(x_179, 1, x_17);
lean_ctor_set(x_179, 2, x_178);
x_180 = l_String_Slice_Pos_get_x3f(x_179, x_118);
lean_dec_ref(x_179);
if (lean_obj_tag(x_180) == 0)
{
uint8_t x_181; 
x_181 = 0;
x_167 = x_181;
goto block_177;
}
else
{
lean_object* x_182; uint32_t x_183; uint32_t x_184; uint8_t x_185; 
x_182 = lean_ctor_get(x_180, 0);
lean_inc(x_182);
lean_dec_ref(x_180);
x_183 = 45;
x_184 = lean_unbox_uint32(x_182);
lean_dec(x_182);
x_185 = lean_uint32_dec_eq(x_184, x_183);
if (x_185 == 0)
{
x_167 = x_185;
goto block_177;
}
else
{
lean_object* x_186; lean_object* x_187; 
lean_dec(x_119);
lean_dec(x_117);
lean_dec_ref(x_2);
x_186 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4;
x_187 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_118);
return x_187;
}
}
block_7:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0;
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
return x_6;
}
block_12:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = l_Lake_VerComparator_wild;
x_10 = lean_array_push(x_2, x_9);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_8);
return x_11;
}
block_16:
{
lean_object* x_14; lean_object* x_15; 
x_14 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1;
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_13);
return x_15;
}
block_114:
{
lean_object* x_25; 
x_25 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(x_21, x_24, x_23);
lean_dec(x_24);
lean_dec_ref(x_21);
if (lean_obj_tag(x_25) == 0)
{
switch (lean_obj_tag(x_22)) {
case 2:
{
switch (lean_obj_tag(x_18)) {
case 2:
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
if (lean_obj_tag(x_26) == 1)
{
uint8_t x_27; 
x_27 = !lean_is_exclusive(x_25);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; 
x_28 = lean_ctor_get(x_25, 0);
lean_dec(x_28);
x_29 = lean_ctor_get(x_22, 0);
lean_inc(x_29);
lean_dec_ref(x_22);
x_30 = lean_ctor_get(x_18, 0);
lean_inc(x_30);
lean_dec_ref(x_18);
lean_inc(x_30);
lean_inc(x_29);
x_31 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_31, 0, x_29);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_31, 2, x_17);
x_32 = lean_nat_add(x_30, x_19);
lean_dec(x_30);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_29);
lean_ctor_set(x_33, 1, x_32);
lean_ctor_set(x_33, 2, x_17);
x_34 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_31);
lean_ctor_set(x_35, 1, x_34);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_33);
lean_ctor_set(x_36, 1, x_34);
x_37 = 3;
x_38 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_38, 0, x_35);
lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37);
lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 1, x_20);
x_39 = lean_array_push(x_2, x_38);
x_40 = 0;
x_41 = 1;
x_42 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_42, 0, x_36);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_40);
lean_ctor_set_uint8(x_42, sizeof(void*)*1 + 1, x_41);
x_43 = lean_array_push(x_39, x_42);
lean_ctor_set(x_25, 0, x_43);
return x_25;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_44 = lean_ctor_get(x_25, 1);
lean_inc(x_44);
lean_dec(x_25);
x_45 = lean_ctor_get(x_22, 0);
lean_inc(x_45);
lean_dec_ref(x_22);
x_46 = lean_ctor_get(x_18, 0);
lean_inc(x_46);
lean_dec_ref(x_18);
lean_inc(x_46);
lean_inc(x_45);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_45);
lean_ctor_set(x_47, 1, x_46);
lean_ctor_set(x_47, 2, x_17);
x_48 = lean_nat_add(x_46, x_19);
lean_dec(x_46);
x_49 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_49, 0, x_45);
lean_ctor_set(x_49, 1, x_48);
lean_ctor_set(x_49, 2, x_17);
x_50 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_51 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_51, 0, x_47);
lean_ctor_set(x_51, 1, x_50);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_49);
lean_ctor_set(x_52, 1, x_50);
x_53 = 3;
x_54 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_54, 0, x_51);
lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_53);
lean_ctor_set_uint8(x_54, sizeof(void*)*1 + 1, x_20);
x_55 = lean_array_push(x_2, x_54);
x_56 = 0;
x_57 = 1;
x_58 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_58, 0, x_52);
lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_56);
lean_ctor_set_uint8(x_58, sizeof(void*)*1 + 1, x_57);
x_59 = lean_array_push(x_55, x_58);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_44);
return x_60;
}
}
else
{
lean_object* x_61; 
lean_dec(x_26);
lean_dec_ref(x_22);
lean_dec_ref(x_18);
lean_dec_ref(x_2);
x_61 = lean_ctor_get(x_25, 1);
lean_inc(x_61);
lean_dec_ref(x_25);
x_4 = x_61;
goto block_7;
}
}
case 1:
{
lean_object* x_62; 
x_62 = lean_ctor_get(x_25, 0);
lean_inc(x_62);
if (lean_obj_tag(x_62) == 2)
{
lean_object* x_63; 
lean_dec_ref(x_62);
lean_dec_ref(x_22);
lean_dec_ref(x_2);
x_63 = lean_ctor_get(x_25, 1);
lean_inc(x_63);
lean_dec_ref(x_25);
x_13 = x_63;
goto block_16;
}
else
{
uint8_t x_64; 
lean_dec(x_62);
x_64 = !lean_is_exclusive(x_25);
if (x_64 == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; 
x_65 = lean_ctor_get(x_25, 0);
lean_dec(x_65);
x_66 = lean_ctor_get(x_22, 0);
lean_inc(x_66);
lean_dec_ref(x_22);
lean_inc(x_66);
x_67 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_17);
lean_ctor_set(x_67, 2, x_17);
x_68 = lean_nat_add(x_66, x_19);
lean_dec(x_66);
x_69 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_17);
lean_ctor_set(x_69, 2, x_17);
x_70 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_71 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_71, 0, x_67);
lean_ctor_set(x_71, 1, x_70);
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_69);
lean_ctor_set(x_72, 1, x_70);
x_73 = 3;
x_74 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_74, 0, x_71);
lean_ctor_set_uint8(x_74, sizeof(void*)*1, x_73);
lean_ctor_set_uint8(x_74, sizeof(void*)*1 + 1, x_20);
x_75 = lean_array_push(x_2, x_74);
x_76 = 0;
x_77 = 1;
x_78 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_78, 0, x_72);
lean_ctor_set_uint8(x_78, sizeof(void*)*1, x_76);
lean_ctor_set_uint8(x_78, sizeof(void*)*1 + 1, x_77);
x_79 = lean_array_push(x_75, x_78);
lean_ctor_set(x_25, 0, x_79);
return x_25;
}
else
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_80 = lean_ctor_get(x_25, 1);
lean_inc(x_80);
lean_dec(x_25);
x_81 = lean_ctor_get(x_22, 0);
lean_inc(x_81);
lean_dec_ref(x_22);
lean_inc(x_81);
x_82 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_82, 0, x_81);
lean_ctor_set(x_82, 1, x_17);
lean_ctor_set(x_82, 2, x_17);
x_83 = lean_nat_add(x_81, x_19);
lean_dec(x_81);
x_84 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_17);
lean_ctor_set(x_84, 2, x_17);
x_85 = l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1;
x_86 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_86, 0, x_82);
lean_ctor_set(x_86, 1, x_85);
x_87 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_87, 0, x_84);
lean_ctor_set(x_87, 1, x_85);
x_88 = 3;
x_89 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_89, 0, x_86);
lean_ctor_set_uint8(x_89, sizeof(void*)*1, x_88);
lean_ctor_set_uint8(x_89, sizeof(void*)*1 + 1, x_20);
x_90 = lean_array_push(x_2, x_89);
x_91 = 0;
x_92 = 1;
x_93 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_93, 0, x_87);
lean_ctor_set_uint8(x_93, sizeof(void*)*1, x_91);
lean_ctor_set_uint8(x_93, sizeof(void*)*1 + 1, x_92);
x_94 = lean_array_push(x_90, x_93);
x_95 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_95, 0, x_94);
lean_ctor_set(x_95, 1, x_80);
return x_95;
}
}
}
default: 
{
lean_object* x_96; 
lean_dec_ref(x_22);
lean_dec(x_18);
lean_dec_ref(x_2);
x_96 = lean_ctor_get(x_25, 1);
lean_inc(x_96);
lean_dec_ref(x_25);
x_4 = x_96;
goto block_7;
}
}
}
case 1:
{
lean_object* x_97; 
x_97 = lean_ctor_get(x_25, 0);
lean_inc(x_97);
if (lean_obj_tag(x_97) == 2)
{
lean_object* x_98; 
lean_dec_ref(x_97);
lean_dec(x_18);
lean_dec_ref(x_2);
x_98 = lean_ctor_get(x_25, 1);
lean_inc(x_98);
lean_dec_ref(x_25);
x_13 = x_98;
goto block_16;
}
else
{
lean_dec(x_97);
if (lean_obj_tag(x_18) == 2)
{
uint8_t x_99; 
lean_dec_ref(x_18);
lean_dec_ref(x_2);
x_99 = !lean_is_exclusive(x_25);
if (x_99 == 0)
{
lean_object* x_100; lean_object* x_101; 
x_100 = lean_ctor_get(x_25, 0);
lean_dec(x_100);
x_101 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2;
lean_ctor_set_tag(x_25, 1);
lean_ctor_set(x_25, 0, x_101);
return x_25;
}
else
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_102 = lean_ctor_get(x_25, 1);
lean_inc(x_102);
lean_dec(x_25);
x_103 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2;
x_104 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_102);
return x_104;
}
}
else
{
lean_object* x_105; 
lean_dec(x_18);
x_105 = lean_ctor_get(x_25, 1);
lean_inc(x_105);
lean_dec_ref(x_25);
x_8 = x_105;
goto block_12;
}
}
}
default: 
{
lean_dec(x_22);
if (lean_obj_tag(x_18) == 1)
{
lean_object* x_106; 
x_106 = lean_ctor_get(x_25, 0);
lean_inc(x_106);
if (lean_obj_tag(x_106) == 2)
{
lean_object* x_107; 
lean_dec_ref(x_106);
lean_dec_ref(x_2);
x_107 = lean_ctor_get(x_25, 1);
lean_inc(x_107);
lean_dec_ref(x_25);
x_13 = x_107;
goto block_16;
}
else
{
lean_object* x_108; 
lean_dec(x_106);
x_108 = lean_ctor_get(x_25, 1);
lean_inc(x_108);
lean_dec_ref(x_25);
x_8 = x_108;
goto block_12;
}
}
else
{
lean_object* x_109; 
lean_dec(x_18);
x_109 = lean_ctor_get(x_25, 1);
lean_inc(x_109);
lean_dec_ref(x_25);
x_8 = x_109;
goto block_12;
}
}
}
}
else
{
uint8_t x_110; 
lean_dec(x_22);
lean_dec(x_18);
lean_dec_ref(x_2);
x_110 = !lean_is_exclusive(x_25);
if (x_110 == 0)
{
return x_25;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_111 = lean_ctor_get(x_25, 0);
x_112 = lean_ctor_get(x_25, 1);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_25);
x_113 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_113, 0, x_111);
lean_ctor_set(x_113, 1, x_112);
return x_113;
}
}
}
block_127:
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; 
x_121 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3;
x_122 = l_Nat_reprFast(x_120);
x_123 = lean_string_append(x_121, x_122);
lean_dec_ref(x_122);
x_124 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1;
x_125 = lean_string_append(x_123, x_124);
if (lean_is_scalar(x_119)) {
 x_126 = lean_alloc_ctor(1, 2, 0);
} else {
 x_126 = x_119;
 lean_ctor_set_tag(x_126, 1);
}
lean_ctor_set(x_126, 0, x_125);
lean_ctor_set(x_126, 1, x_118);
return x_126;
}
block_148:
{
lean_object* x_135; 
x_135 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(x_130, x_134, x_128);
lean_dec(x_134);
lean_dec_ref(x_130);
if (lean_obj_tag(x_135) == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; 
x_136 = lean_ctor_get(x_135, 0);
lean_inc(x_136);
x_137 = lean_ctor_get(x_135, 1);
lean_inc(x_137);
lean_dec_ref(x_135);
x_138 = l_Lake_instReprSemVerCore_repr___redArg___closed__12;
x_139 = lean_unsigned_to_nat(2u);
x_140 = lean_nat_dec_lt(x_139, x_132);
lean_dec(x_132);
if (x_140 == 0)
{
lean_object* x_141; 
lean_dec(x_117);
x_141 = lean_box(0);
x_18 = x_136;
x_19 = x_129;
x_20 = x_131;
x_21 = x_138;
x_22 = x_133;
x_23 = x_137;
x_24 = x_141;
goto block_114;
}
else
{
lean_object* x_142; lean_object* x_143; 
x_142 = lean_array_fget(x_117, x_139);
lean_dec(x_117);
x_143 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_143, 0, x_142);
x_18 = x_136;
x_19 = x_129;
x_20 = x_131;
x_21 = x_138;
x_22 = x_133;
x_23 = x_137;
x_24 = x_143;
goto block_114;
}
}
else
{
uint8_t x_144; 
lean_dec(x_133);
lean_dec(x_132);
lean_dec(x_117);
lean_dec_ref(x_2);
x_144 = !lean_is_exclusive(x_135);
if (x_144 == 0)
{
return x_135;
}
else
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; 
x_145 = lean_ctor_get(x_135, 0);
x_146 = lean_ctor_get(x_135, 1);
lean_inc(x_146);
lean_inc(x_145);
lean_dec(x_135);
x_147 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_147, 0, x_145);
lean_ctor_set(x_147, 1, x_146);
return x_147;
}
}
}
block_166:
{
lean_object* x_153; 
x_153 = l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg(x_151, x_152, x_118);
lean_dec(x_152);
lean_dec_ref(x_151);
if (lean_obj_tag(x_153) == 0)
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; 
x_154 = lean_ctor_get(x_153, 0);
lean_inc(x_154);
x_155 = lean_ctor_get(x_153, 1);
lean_inc(x_155);
lean_dec_ref(x_153);
x_156 = l_Lake_instReprSemVerCore_repr___redArg___closed__10;
x_157 = lean_unsigned_to_nat(1u);
x_158 = lean_nat_dec_lt(x_157, x_150);
if (x_158 == 0)
{
lean_object* x_159; 
x_159 = lean_box(0);
x_128 = x_155;
x_129 = x_157;
x_130 = x_156;
x_131 = x_149;
x_132 = x_150;
x_133 = x_154;
x_134 = x_159;
goto block_148;
}
else
{
lean_object* x_160; lean_object* x_161; 
x_160 = lean_array_fget_borrowed(x_117, x_157);
lean_inc(x_160);
x_161 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_161, 0, x_160);
x_128 = x_155;
x_129 = x_157;
x_130 = x_156;
x_131 = x_149;
x_132 = x_150;
x_133 = x_154;
x_134 = x_161;
goto block_148;
}
}
else
{
uint8_t x_162; 
lean_dec(x_150);
lean_dec(x_117);
lean_dec_ref(x_2);
x_162 = !lean_is_exclusive(x_153);
if (x_162 == 0)
{
return x_153;
}
else
{
lean_object* x_163; lean_object* x_164; lean_object* x_165; 
x_163 = lean_ctor_get(x_153, 0);
x_164 = lean_ctor_get(x_153, 1);
lean_inc(x_164);
lean_inc(x_163);
lean_dec(x_153);
x_165 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_165, 0, x_163);
lean_ctor_set(x_165, 1, x_164);
return x_165;
}
}
}
block_177:
{
lean_object* x_168; uint8_t x_169; 
x_168 = lean_array_get_size(x_117);
x_169 = lean_nat_dec_eq(x_168, x_17);
if (x_169 == 0)
{
lean_object* x_170; uint8_t x_171; 
x_170 = lean_unsigned_to_nat(3u);
x_171 = lean_nat_dec_lt(x_170, x_168);
if (x_171 == 0)
{
lean_object* x_172; uint8_t x_173; 
lean_dec(x_119);
x_172 = l_Lake_instReprSemVerCore_repr___redArg___closed__1;
x_173 = lean_nat_dec_lt(x_17, x_168);
if (x_173 == 0)
{
lean_object* x_174; 
x_174 = lean_box(0);
x_149 = x_167;
x_150 = x_168;
x_151 = x_172;
x_152 = x_174;
goto block_166;
}
else
{
lean_object* x_175; lean_object* x_176; 
x_175 = lean_array_fget_borrowed(x_117, x_17);
lean_inc(x_175);
x_176 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_176, 0, x_175);
x_149 = x_167;
x_150 = x_168;
x_151 = x_172;
x_152 = x_176;
goto block_166;
}
}
else
{
lean_dec(x_117);
lean_dec_ref(x_2);
x_120 = x_168;
goto block_127;
}
}
else
{
lean_dec(x_117);
lean_dec_ref(x_2);
x_120 = x_168;
goto block_127;
}
}
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected version range", 22, 22);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected '|' after first '|'", 28, 28);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_string_utf8_byte_size(x_1);
x_13 = lean_nat_dec_eq(x_5, x_12);
if (x_13 == 0)
{
uint32_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_61; uint8_t x_62; uint8_t x_68; uint8_t x_99; uint8_t x_105; uint32_t x_111; uint8_t x_112; 
x_23 = lean_string_utf8_get_fast(x_1, x_5);
x_111 = 65;
x_112 = lean_uint32_dec_le(x_111, x_23);
if (x_112 == 0)
{
x_105 = x_112;
goto block_110;
}
else
{
uint32_t x_113; uint8_t x_114; 
x_113 = 90;
x_114 = lean_uint32_dec_le(x_23, x_113);
x_105 = x_114;
goto block_110;
}
block_60:
{
if (x_25 == 0)
{
uint32_t x_26; uint8_t x_27; 
x_26 = 44;
x_27 = lean_uint32_dec_eq(x_23, x_26);
if (x_27 == 0)
{
uint32_t x_28; uint8_t x_29; 
x_28 = 124;
x_29 = lean_uint32_dec_eq(x_23, x_28);
if (x_29 == 0)
{
lean_object* x_30; 
lean_dec(x_12);
lean_inc_ref(x_1);
x_30 = l___private_Lake_Util_Version_0__Lake_VerComparator_parseM(x_1, x_5);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec_ref(x_30);
x_33 = lean_array_push(x_4, x_31);
x_2 = x_29;
x_4 = x_33;
x_5 = x_32;
goto _start;
}
else
{
uint8_t x_35; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_35 = !lean_is_exclusive(x_30);
if (x_35 == 0)
{
return x_30;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = lean_ctor_get(x_30, 0);
x_37 = lean_ctor_get(x_30, 1);
lean_inc(x_37);
lean_inc(x_36);
lean_dec(x_30);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_36);
lean_ctor_set(x_38, 1, x_37);
return x_38;
}
}
}
else
{
lean_object* x_39; uint8_t x_40; 
x_39 = lean_string_utf8_next_fast(x_1, x_5);
lean_dec(x_5);
x_40 = lean_nat_dec_eq(x_39, x_12);
lean_dec(x_12);
if (x_40 == 0)
{
uint32_t x_41; uint8_t x_42; 
x_41 = lean_string_utf8_get_fast(x_1, x_39);
x_42 = lean_uint32_dec_eq(x_41, x_28);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_43 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1;
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_39);
return x_44;
}
else
{
lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_45 = lean_array_get_size(x_4);
x_46 = lean_unsigned_to_nat(0u);
x_47 = lean_nat_dec_eq(x_45, x_46);
lean_dec(x_45);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_array_push(x_3, x_4);
x_49 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2;
x_50 = lean_string_utf8_next_fast(x_1, x_39);
lean_dec(x_39);
x_2 = x_24;
x_3 = x_48;
x_4 = x_49;
x_5 = x_50;
goto _start;
}
else
{
lean_object* x_52; lean_object* x_53; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_52 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0;
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_39);
return x_53;
}
}
}
else
{
lean_object* x_54; lean_object* x_55; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_54 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1;
x_55 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_55, 0, x_54);
lean_ctor_set(x_55, 1, x_39);
return x_55;
}
}
}
else
{
lean_dec(x_12);
if (x_2 == 0)
{
lean_object* x_56; 
x_56 = lean_string_utf8_next_fast(x_1, x_5);
lean_dec(x_5);
x_2 = x_24;
x_5 = x_56;
goto _start;
}
else
{
lean_object* x_58; lean_object* x_59; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_58 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0;
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_5);
return x_59;
}
}
}
else
{
lean_dec(x_12);
goto block_11;
}
}
block_67:
{
if (x_62 == 0)
{
uint32_t x_63; uint8_t x_64; 
x_63 = 13;
x_64 = lean_uint32_dec_eq(x_23, x_63);
if (x_64 == 0)
{
uint32_t x_65; uint8_t x_66; 
x_65 = 10;
x_66 = lean_uint32_dec_eq(x_23, x_65);
x_24 = x_61;
x_25 = x_66;
goto block_60;
}
else
{
x_24 = x_61;
x_25 = x_64;
goto block_60;
}
}
else
{
lean_dec(x_12);
goto block_11;
}
}
block_98:
{
if (x_68 == 0)
{
uint32_t x_69; uint8_t x_70; 
x_69 = 42;
x_70 = lean_uint32_dec_eq(x_23, x_69);
if (x_70 == 0)
{
uint32_t x_71; uint8_t x_72; 
x_71 = 94;
x_72 = lean_uint32_dec_eq(x_23, x_71);
if (x_72 == 0)
{
uint32_t x_73; uint8_t x_74; 
x_73 = 126;
x_74 = lean_uint32_dec_eq(x_23, x_73);
if (x_74 == 0)
{
uint8_t x_75; uint32_t x_76; uint8_t x_77; 
x_75 = 1;
x_76 = 32;
x_77 = lean_uint32_dec_eq(x_23, x_76);
if (x_77 == 0)
{
uint32_t x_78; uint8_t x_79; 
x_78 = 9;
x_79 = lean_uint32_dec_eq(x_23, x_78);
x_61 = x_75;
x_62 = x_79;
goto block_67;
}
else
{
x_61 = x_75;
x_62 = x_77;
goto block_67;
}
}
else
{
lean_object* x_80; lean_object* x_81; 
lean_dec(x_12);
x_80 = lean_string_utf8_next_fast(x_1, x_5);
lean_dec(x_5);
lean_inc_ref(x_1);
x_81 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde(x_1, x_4, x_80);
if (lean_obj_tag(x_81) == 0)
{
lean_object* x_82; lean_object* x_83; 
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
x_83 = lean_ctor_get(x_81, 1);
lean_inc(x_83);
lean_dec_ref(x_81);
x_2 = x_72;
x_4 = x_82;
x_5 = x_83;
goto _start;
}
else
{
uint8_t x_85; 
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_85 = !lean_is_exclusive(x_81);
if (x_85 == 0)
{
return x_81;
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_86 = lean_ctor_get(x_81, 0);
x_87 = lean_ctor_get(x_81, 1);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_81);
x_88 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_88, 0, x_86);
lean_ctor_set(x_88, 1, x_87);
return x_88;
}
}
}
}
else
{
lean_object* x_89; lean_object* x_90; 
lean_dec(x_12);
x_89 = lean_string_utf8_next_fast(x_1, x_5);
lean_dec(x_5);
lean_inc_ref(x_1);
x_90 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret(x_1, x_4, x_89);
if (lean_obj_tag(x_90) == 0)
{
lean_object* x_91; lean_object* x_92; 
x_91 = lean_ctor_get(x_90, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_90, 1);
lean_inc(x_92);
lean_dec_ref(x_90);
x_2 = x_70;
x_4 = x_91;
x_5 = x_92;
goto _start;
}
else
{
uint8_t x_94; 
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_94 = !lean_is_exclusive(x_90);
if (x_94 == 0)
{
return x_90;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_90, 0);
x_96 = lean_ctor_get(x_90, 1);
lean_inc(x_96);
lean_inc(x_95);
lean_dec(x_90);
x_97 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_97, 0, x_95);
lean_ctor_set(x_97, 1, x_96);
return x_97;
}
}
}
}
else
{
lean_dec(x_12);
goto block_22;
}
}
else
{
lean_dec(x_12);
goto block_22;
}
}
block_104:
{
if (x_99 == 0)
{
uint32_t x_100; uint8_t x_101; 
x_100 = 48;
x_101 = lean_uint32_dec_le(x_100, x_23);
if (x_101 == 0)
{
x_68 = x_101;
goto block_98;
}
else
{
uint32_t x_102; uint8_t x_103; 
x_102 = 57;
x_103 = lean_uint32_dec_le(x_23, x_102);
x_68 = x_103;
goto block_98;
}
}
else
{
lean_dec(x_12);
goto block_22;
}
}
block_110:
{
if (x_105 == 0)
{
uint32_t x_106; uint8_t x_107; 
x_106 = 97;
x_107 = lean_uint32_dec_le(x_106, x_23);
if (x_107 == 0)
{
x_99 = x_107;
goto block_104;
}
else
{
uint32_t x_108; uint8_t x_109; 
x_108 = 122;
x_109 = lean_uint32_dec_le(x_23, x_108);
x_99 = x_109;
goto block_104;
}
}
else
{
lean_dec(x_12);
goto block_22;
}
}
}
else
{
lean_dec(x_12);
lean_dec_ref(x_1);
if (x_2 == 0)
{
lean_object* x_115; lean_object* x_116; uint8_t x_117; 
x_115 = lean_array_get_size(x_4);
x_116 = lean_unsigned_to_nat(0u);
x_117 = lean_nat_dec_eq(x_115, x_116);
lean_dec(x_115);
if (x_117 == 0)
{
lean_object* x_118; lean_object* x_119; 
x_118 = lean_array_push(x_3, x_4);
x_119 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_119, 0, x_118);
lean_ctor_set(x_119, 1, x_5);
return x_119;
}
else
{
lean_dec_ref(x_4);
lean_dec_ref(x_3);
goto block_8;
}
}
else
{
lean_dec_ref(x_4);
lean_dec_ref(x_3);
goto block_8;
}
}
block_8:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0;
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
return x_7;
}
block_11:
{
lean_object* x_9; 
x_9 = lean_string_utf8_next_fast(x_1, x_5);
lean_dec(x_5);
x_5 = x_9;
goto _start;
}
block_22:
{
lean_object* x_14; 
lean_inc_ref(x_1);
x_14 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild(x_1, x_4, x_5);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec_ref(x_14);
x_2 = x_13;
x_4 = x_15;
x_5 = x_16;
goto _start;
}
else
{
uint8_t x_18; 
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_18 = !lean_is_exclusive(x_14);
if (x_18 == 0)
{
return x_14;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_14, 0);
x_20 = lean_ctor_get(x_14, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_14);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
x_7 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go(x_1, x_6, x_3, x_4, x_5);
return x_7;
}
}
static lean_object* _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_VerRange_parseM(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; lean_object* x_5; 
x_3 = 1;
x_4 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0;
lean_inc_ref(x_1);
x_5 = l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go(x_1, x_3, x_4, x_4, x_2);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_5, 0);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_5);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_1);
lean_ctor_set(x_11, 1, x_9);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
lean_dec_ref(x_1);
x_13 = !lean_is_exclusive(x_5);
if (x_13 == 0)
{
return x_5;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_5, 0);
x_15 = lean_ctor_get(x_5, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_5);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
}
static lean_object* _init_l_Lake_VerRange_parse___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lake_Util_Version_0__Lake_VerRange_parseM), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_VerRange_parse(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lake_VerRange_parse___closed__0;
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_string_utf8_byte_size(x_1);
x_5 = l___private_Lake_Util_Version_0__Lake_runVerParse___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
uint8_t x_6; lean_object* x_7; uint8_t x_8; 
x_6 = 1;
x_7 = lean_array_uget(x_2, x_3);
x_8 = l_Lake_VerComparator_test(x_7, x_1);
lean_dec(x_7);
if (x_8 == 0)
{
return x_6;
}
else
{
if (x_5 == 0)
{
size_t x_9; size_t x_10; 
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_3 = x_10;
goto _start;
}
else
{
return x_6;
}
}
}
else
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_6 = 1;
x_7 = lean_array_uget(x_2, x_3);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_array_get_size(x_7);
x_10 = lean_nat_dec_lt(x_8, x_9);
if (x_10 == 0)
{
lean_dec(x_9);
lean_dec(x_7);
return x_6;
}
else
{
if (x_10 == 0)
{
lean_dec(x_9);
lean_dec(x_7);
return x_6;
}
else
{
size_t x_11; size_t x_12; uint8_t x_13; 
x_11 = 0;
x_12 = lean_usize_of_nat(x_9);
lean_dec(x_9);
x_13 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0(x_1, x_7, x_11, x_12);
lean_dec(x_7);
if (x_13 == 0)
{
return x_6;
}
else
{
if (x_5 == 0)
{
size_t x_14; size_t x_15; 
x_14 = 1;
x_15 = lean_usize_add(x_3, x_14);
x_3 = x_15;
goto _start;
}
else
{
return x_6;
}
}
}
}
}
else
{
uint8_t x_17; 
x_17 = 0;
return x_17;
}
}
}
LEAN_EXPORT uint8_t l_Lake_VerRange_test(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_array_get_size(x_3);
x_6 = lean_nat_dec_lt(x_4, x_5);
if (x_6 == 0)
{
lean_dec(x_5);
return x_6;
}
else
{
if (x_6 == 0)
{
lean_dec(x_5);
return x_6;
}
else
{
size_t x_7; size_t x_8; uint8_t x_9; 
x_7 = 0;
x_8 = lean_usize_of_nat(x_5);
lean_dec(x_5);
x_9 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1(x_2, x_3, x_7, x_8);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_VerRange_test___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lake_VerRange_test(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_7 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__0(x_1, x_2, x_5, x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_7 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lake_VerRange_test_spec__1(x_1, x_2, x_5, x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
lean_object* initialize_Lean_Data_Json(uint8_t builtin);
lean_object* initialize_Lake_Util_Date(uint8_t builtin);
lean_object* initialize_Init_Data_String_Slice(uint8_t builtin);
lean_object* initialize_Init_Data_String_TakeDrop(uint8_t builtin);
lean_object* initialize_Lean_Data_Trie(uint8_t builtin);
lean_object* initialize_Init_Data_String_Search(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Util_Version(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Data_Json(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_Date(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Slice(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_TakeDrop(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_Trie(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Search(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseVerComponents___closed__0);
l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__0);
l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__1);
l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2 = _init_l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseVerNat___closed__2);
l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseVerComponent___redArg___closed__0);
l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__0);
l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_parseSpecialDescr___closed__1);
l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_runVerParse___redArg___closed__0);
l_Lake_instInhabitedSemVerCore_default___closed__0 = _init_l_Lake_instInhabitedSemVerCore_default___closed__0();
lean_mark_persistent(l_Lake_instInhabitedSemVerCore_default___closed__0);
l_Lake_instInhabitedSemVerCore_default = _init_l_Lake_instInhabitedSemVerCore_default();
lean_mark_persistent(l_Lake_instInhabitedSemVerCore_default);
l_Lake_instInhabitedSemVerCore = _init_l_Lake_instInhabitedSemVerCore();
lean_mark_persistent(l_Lake_instInhabitedSemVerCore);
l_Lake_instReprSemVerCore_repr___redArg___closed__4 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__4();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__4);
l_Lake_instReprSemVerCore_repr___redArg___closed__5 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__5();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__5);
l_Lake_instReprSemVerCore_repr___redArg___closed__1 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__1();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__1);
l_Lake_instReprSemVerCore_repr___redArg___closed__2 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__2();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__2);
l_Lake_instReprSemVerCore_repr___redArg___closed__3 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__3();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__3);
l_Lake_instReprSemVerCore_repr___redArg___closed__6 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__6();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__6);
l_Lake_instReprSemVerCore_repr___redArg___closed__7 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__7();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__7);
l_Lake_instReprSemVerCore_repr___redArg___closed__8 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__8();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__8);
l_Lake_instReprSemVerCore_repr___redArg___closed__9 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__9();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__9);
l_Lake_instReprSemVerCore_repr___redArg___closed__10 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__10();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__10);
l_Lake_instReprSemVerCore_repr___redArg___closed__11 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__11();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__11);
l_Lake_instReprSemVerCore_repr___redArg___closed__12 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__12();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__12);
l_Lake_instReprSemVerCore_repr___redArg___closed__13 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__13();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__13);
l_Lake_instReprSemVerCore_repr___redArg___closed__0 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__0();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__0);
l_Lake_instReprSemVerCore_repr___redArg___closed__15 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__15();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__15);
l_Lake_instReprSemVerCore_repr___redArg___closed__16 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__16();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__16);
l_Lake_instReprSemVerCore_repr___redArg___closed__17 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__17();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__17);
l_Lake_instReprSemVerCore_repr___redArg___closed__14 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__14();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__14);
l_Lake_instReprSemVerCore_repr___redArg___closed__18 = _init_l_Lake_instReprSemVerCore_repr___redArg___closed__18();
lean_mark_persistent(l_Lake_instReprSemVerCore_repr___redArg___closed__18);
l_Lake_instReprSemVerCore___closed__0 = _init_l_Lake_instReprSemVerCore___closed__0();
lean_mark_persistent(l_Lake_instReprSemVerCore___closed__0);
l_Lake_instReprSemVerCore = _init_l_Lake_instReprSemVerCore();
lean_mark_persistent(l_Lake_instReprSemVerCore);
l_Lake_instOrdSemVerCore___closed__0 = _init_l_Lake_instOrdSemVerCore___closed__0();
lean_mark_persistent(l_Lake_instOrdSemVerCore___closed__0);
l_Lake_instOrdSemVerCore = _init_l_Lake_instOrdSemVerCore();
lean_mark_persistent(l_Lake_instOrdSemVerCore);
l_Lake_SemVerCore_instLT = _init_l_Lake_SemVerCore_instLT();
lean_mark_persistent(l_Lake_SemVerCore_instLT);
l_Lake_SemVerCore_instLE = _init_l_Lake_SemVerCore_instLE();
lean_mark_persistent(l_Lake_SemVerCore_instLE);
l_Lake_SemVerCore_instMin = _init_l_Lake_SemVerCore_instMin();
lean_mark_persistent(l_Lake_SemVerCore_instMin);
l_Lake_SemVerCore_instMax = _init_l_Lake_SemVerCore_instMax();
lean_mark_persistent(l_Lake_SemVerCore_instMax);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__0);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__1);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__2);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__3);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__4);
l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5 = _init_l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_SemVerCore_parseM___closed__5);
l_Lake_SemVerCore_parse___closed__0 = _init_l_Lake_SemVerCore_parse___closed__0();
lean_mark_persistent(l_Lake_SemVerCore_parse___closed__0);
l_Lake_SemVerCore_toString___closed__0 = _init_l_Lake_SemVerCore_toString___closed__0();
lean_mark_persistent(l_Lake_SemVerCore_toString___closed__0);
l_Lake_SemVerCore_instToString___closed__0 = _init_l_Lake_SemVerCore_instToString___closed__0();
lean_mark_persistent(l_Lake_SemVerCore_instToString___closed__0);
l_Lake_SemVerCore_instToString = _init_l_Lake_SemVerCore_instToString();
lean_mark_persistent(l_Lake_SemVerCore_instToString);
l_Lake_SemVerCore_instToJson = _init_l_Lake_SemVerCore_instToJson();
lean_mark_persistent(l_Lake_SemVerCore_instToJson);
l_Lake_SemVerCore_instFromJson = _init_l_Lake_SemVerCore_instFromJson();
lean_mark_persistent(l_Lake_SemVerCore_instFromJson);
l_Lake_instInhabitedStdVer_default___closed__0 = _init_l_Lake_instInhabitedStdVer_default___closed__0();
lean_mark_persistent(l_Lake_instInhabitedStdVer_default___closed__0);
l_Lake_instInhabitedStdVer_default = _init_l_Lake_instInhabitedStdVer_default();
lean_mark_persistent(l_Lake_instInhabitedStdVer_default);
l_Lake_instInhabitedStdVer = _init_l_Lake_instInhabitedStdVer();
lean_mark_persistent(l_Lake_instInhabitedStdVer);
l_Lake_instReprStdVer_repr___redArg___closed__0 = _init_l_Lake_instReprStdVer_repr___redArg___closed__0();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__0);
l_Lake_instReprStdVer_repr___redArg___closed__1 = _init_l_Lake_instReprStdVer_repr___redArg___closed__1();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__1);
l_Lake_instReprStdVer_repr___redArg___closed__2 = _init_l_Lake_instReprStdVer_repr___redArg___closed__2();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__2);
l_Lake_instReprStdVer_repr___redArg___closed__3 = _init_l_Lake_instReprStdVer_repr___redArg___closed__3();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__3);
l_Lake_instReprStdVer_repr___redArg___closed__4 = _init_l_Lake_instReprStdVer_repr___redArg___closed__4();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__4);
l_Lake_instReprStdVer_repr___redArg___closed__5 = _init_l_Lake_instReprStdVer_repr___redArg___closed__5();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__5);
l_Lake_instReprStdVer_repr___redArg___closed__6 = _init_l_Lake_instReprStdVer_repr___redArg___closed__6();
lean_mark_persistent(l_Lake_instReprStdVer_repr___redArg___closed__6);
l_Lake_instReprStdVer___closed__0 = _init_l_Lake_instReprStdVer___closed__0();
lean_mark_persistent(l_Lake_instReprStdVer___closed__0);
l_Lake_instReprStdVer = _init_l_Lake_instReprStdVer();
lean_mark_persistent(l_Lake_instReprStdVer);
l_Lake_StdVer_instCoeSemVerCore = _init_l_Lake_StdVer_instCoeSemVerCore();
lean_mark_persistent(l_Lake_StdVer_instCoeSemVerCore);
l_Lake_StdVer_instCoeSemVerCore__1___closed__0 = _init_l_Lake_StdVer_instCoeSemVerCore__1___closed__0();
lean_mark_persistent(l_Lake_StdVer_instCoeSemVerCore__1___closed__0);
l_Lake_StdVer_instCoeSemVerCore__1 = _init_l_Lake_StdVer_instCoeSemVerCore__1();
lean_mark_persistent(l_Lake_StdVer_instCoeSemVerCore__1);
l_Lake_StdVer_instOrd___closed__0 = _init_l_Lake_StdVer_instOrd___closed__0();
lean_mark_persistent(l_Lake_StdVer_instOrd___closed__0);
l_Lake_StdVer_instOrd = _init_l_Lake_StdVer_instOrd();
lean_mark_persistent(l_Lake_StdVer_instOrd);
l_Lake_StdVer_instLT = _init_l_Lake_StdVer_instLT();
lean_mark_persistent(l_Lake_StdVer_instLT);
l_Lake_StdVer_instLE = _init_l_Lake_StdVer_instLE();
lean_mark_persistent(l_Lake_StdVer_instLE);
l_Lake_StdVer_instMin = _init_l_Lake_StdVer_instMin();
lean_mark_persistent(l_Lake_StdVer_instMin);
l_Lake_StdVer_instMax = _init_l_Lake_StdVer_instMax();
lean_mark_persistent(l_Lake_StdVer_instMax);
l_Lake_StdVer_parse___closed__0 = _init_l_Lake_StdVer_parse___closed__0();
lean_mark_persistent(l_Lake_StdVer_parse___closed__0);
l_Lake_StdVer_toString___closed__0 = _init_l_Lake_StdVer_toString___closed__0();
lean_mark_persistent(l_Lake_StdVer_toString___closed__0);
l_Lake_StdVer_instToString___closed__0 = _init_l_Lake_StdVer_instToString___closed__0();
lean_mark_persistent(l_Lake_StdVer_instToString___closed__0);
l_Lake_StdVer_instToString = _init_l_Lake_StdVer_instToString();
lean_mark_persistent(l_Lake_StdVer_instToString);
l_Lake_StdVer_instToJson = _init_l_Lake_StdVer_instToJson();
lean_mark_persistent(l_Lake_StdVer_instToJson);
l_Lake_StdVer_instFromJson = _init_l_Lake_StdVer_instFromJson();
lean_mark_persistent(l_Lake_StdVer_instFromJson);
l_Lake_toolchainFileName___closed__0 = _init_l_Lake_toolchainFileName___closed__0();
lean_mark_persistent(l_Lake_toolchainFileName___closed__0);
l_Lake_toolchainFileName = _init_l_Lake_toolchainFileName();
lean_mark_persistent(l_Lake_toolchainFileName);
l_Lake_ToolchainVer_defaultOrigin___closed__0 = _init_l_Lake_ToolchainVer_defaultOrigin___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin___closed__0);
l_Lake_ToolchainVer_defaultOrigin = _init_l_Lake_ToolchainVer_defaultOrigin();
lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin);
l_Lake_ToolchainVer_prOrigin___closed__0 = _init_l_Lake_ToolchainVer_prOrigin___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_prOrigin___closed__0);
l_Lake_ToolchainVer_prOrigin = _init_l_Lake_ToolchainVer_prOrigin();
lean_mark_persistent(l_Lake_ToolchainVer_prOrigin);
l_Lake_ToolchainVer_nightly___override___closed__0 = _init_l_Lake_ToolchainVer_nightly___override___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_nightly___override___closed__0);
l_Lake_ToolchainVer_pr___override___closed__0 = _init_l_Lake_ToolchainVer_pr___override___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_pr___override___closed__0);
l_Lake_ToolchainVer_release___override___closed__0 = _init_l_Lake_ToolchainVer_release___override___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_release___override___closed__0);
l_Lake_instReprToolchainVer_repr___closed__0 = _init_l_Lake_instReprToolchainVer_repr___closed__0();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__0);
l_Lake_instReprToolchainVer_repr___closed__1 = _init_l_Lake_instReprToolchainVer_repr___closed__1();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__1);
l_Lake_instReprToolchainVer_repr___closed__2 = _init_l_Lake_instReprToolchainVer_repr___closed__2();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__2);
l_Lake_instReprToolchainVer_repr___closed__3 = _init_l_Lake_instReprToolchainVer_repr___closed__3();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__3);
l_Lake_instReprToolchainVer_repr___closed__4 = _init_l_Lake_instReprToolchainVer_repr___closed__4();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__4);
l_Lake_instReprToolchainVer_repr___closed__5 = _init_l_Lake_instReprToolchainVer_repr___closed__5();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__5);
l_Lake_instReprToolchainVer_repr___closed__6 = _init_l_Lake_instReprToolchainVer_repr___closed__6();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__6);
l_Lake_instReprToolchainVer_repr___closed__7 = _init_l_Lake_instReprToolchainVer_repr___closed__7();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__7);
l_Lake_instReprToolchainVer_repr___closed__8 = _init_l_Lake_instReprToolchainVer_repr___closed__8();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__8);
l_Lake_instReprToolchainVer_repr___closed__9 = _init_l_Lake_instReprToolchainVer_repr___closed__9();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__9);
l_Lake_instReprToolchainVer_repr___closed__10 = _init_l_Lake_instReprToolchainVer_repr___closed__10();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__10);
l_Lake_instReprToolchainVer_repr___closed__11 = _init_l_Lake_instReprToolchainVer_repr___closed__11();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__11);
l_Lake_instReprToolchainVer_repr___closed__12 = _init_l_Lake_instReprToolchainVer_repr___closed__12();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__12);
l_Lake_instReprToolchainVer_repr___closed__13 = _init_l_Lake_instReprToolchainVer_repr___closed__13();
lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__13);
l_Lake_instReprToolchainVer___closed__0 = _init_l_Lake_instReprToolchainVer___closed__0();
lean_mark_persistent(l_Lake_instReprToolchainVer___closed__0);
l_Lake_instReprToolchainVer = _init_l_Lake_instReprToolchainVer();
lean_mark_persistent(l_Lake_instReprToolchainVer);
l_Lake_ToolchainVer_instCoeLeanVer___closed__0 = _init_l_Lake_ToolchainVer_instCoeLeanVer___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_instCoeLeanVer___closed__0);
l_Lake_ToolchainVer_instCoeLeanVer = _init_l_Lake_ToolchainVer_instCoeLeanVer();
lean_mark_persistent(l_Lake_ToolchainVer_instCoeLeanVer);
l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0 = _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0();
lean_mark_persistent(l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__0);
l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1 = _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1();
lean_mark_persistent(l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__0___redArg___closed__1);
l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0 = _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0();
lean_mark_persistent(l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__1___redArg___closed__0);
l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0 = _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0();
lean_mark_persistent(l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__0);
l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1 = _init_l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1();
lean_mark_persistent(l_String_dropPrefix_x3f___at___00Lake_ToolchainVer_ofString_spec__2___redArg___closed__1);
l_Lake_ToolchainVer_ofString___closed__0 = _init_l_Lake_ToolchainVer_ofString___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__0);
l_Lake_ToolchainVer_ofString___closed__1 = _init_l_Lake_ToolchainVer_ofString___closed__1();
lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__1);
l_Lake_ToolchainVer_ofString___closed__2 = _init_l_Lake_ToolchainVer_ofString___closed__2();
lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__2);
l_Lake_ToolchainVer_ofString___closed__3 = _init_l_Lake_ToolchainVer_ofString___closed__3();
lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__3);
l_Lake_ToolchainVer_instToString___closed__0 = _init_l_Lake_ToolchainVer_instToString___closed__0();
lean_mark_persistent(l_Lake_ToolchainVer_instToString___closed__0);
l_Lake_ToolchainVer_instToString = _init_l_Lake_ToolchainVer_instToString();
lean_mark_persistent(l_Lake_ToolchainVer_instToString);
l_Lake_ToolchainVer_instToJson = _init_l_Lake_ToolchainVer_instToJson();
lean_mark_persistent(l_Lake_ToolchainVer_instToJson);
l_Lake_ToolchainVer_instFromJson = _init_l_Lake_ToolchainVer_instFromJson();
lean_mark_persistent(l_Lake_ToolchainVer_instFromJson);
l_Lake_ToolchainVer_instLT = _init_l_Lake_ToolchainVer_instLT();
lean_mark_persistent(l_Lake_ToolchainVer_instLT);
l_Lake_ToolchainVer_instLE = _init_l_Lake_ToolchainVer_instLE();
lean_mark_persistent(l_Lake_ToolchainVer_instLE);
l_Lake_instDecodeVersionSemVerCore___closed__0 = _init_l_Lake_instDecodeVersionSemVerCore___closed__0();
lean_mark_persistent(l_Lake_instDecodeVersionSemVerCore___closed__0);
l_Lake_instDecodeVersionSemVerCore = _init_l_Lake_instDecodeVersionSemVerCore();
lean_mark_persistent(l_Lake_instDecodeVersionSemVerCore);
l_Lake_instDecodeVersionStdVer___closed__0 = _init_l_Lake_instDecodeVersionStdVer___closed__0();
lean_mark_persistent(l_Lake_instDecodeVersionStdVer___closed__0);
l_Lake_instDecodeVersionStdVer = _init_l_Lake_instDecodeVersionStdVer();
lean_mark_persistent(l_Lake_instDecodeVersionStdVer);
l_Lake_instDecodeVersionToolchainVer = _init_l_Lake_instDecodeVersionToolchainVer();
lean_mark_persistent(l_Lake_instDecodeVersionToolchainVer);
l_Lake_instReprComparatorOp_repr___closed__0 = _init_l_Lake_instReprComparatorOp_repr___closed__0();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__0);
l_Lake_instReprComparatorOp_repr___closed__1 = _init_l_Lake_instReprComparatorOp_repr___closed__1();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__1);
l_Lake_instReprComparatorOp_repr___closed__2 = _init_l_Lake_instReprComparatorOp_repr___closed__2();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__2);
l_Lake_instReprComparatorOp_repr___closed__3 = _init_l_Lake_instReprComparatorOp_repr___closed__3();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__3);
l_Lake_instReprComparatorOp_repr___closed__4 = _init_l_Lake_instReprComparatorOp_repr___closed__4();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__4);
l_Lake_instReprComparatorOp_repr___closed__5 = _init_l_Lake_instReprComparatorOp_repr___closed__5();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__5);
l_Lake_instReprComparatorOp_repr___closed__6 = _init_l_Lake_instReprComparatorOp_repr___closed__6();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__6);
l_Lake_instReprComparatorOp_repr___closed__7 = _init_l_Lake_instReprComparatorOp_repr___closed__7();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__7);
l_Lake_instReprComparatorOp_repr___closed__8 = _init_l_Lake_instReprComparatorOp_repr___closed__8();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__8);
l_Lake_instReprComparatorOp_repr___closed__9 = _init_l_Lake_instReprComparatorOp_repr___closed__9();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__9);
l_Lake_instReprComparatorOp_repr___closed__10 = _init_l_Lake_instReprComparatorOp_repr___closed__10();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__10);
l_Lake_instReprComparatorOp_repr___closed__11 = _init_l_Lake_instReprComparatorOp_repr___closed__11();
lean_mark_persistent(l_Lake_instReprComparatorOp_repr___closed__11);
l_Lake_instReprComparatorOp___closed__0 = _init_l_Lake_instReprComparatorOp___closed__0();
lean_mark_persistent(l_Lake_instReprComparatorOp___closed__0);
l_Lake_instReprComparatorOp = _init_l_Lake_instReprComparatorOp();
lean_mark_persistent(l_Lake_instReprComparatorOp);
l_Lake_instInhabitedComparatorOp_default = _init_l_Lake_instInhabitedComparatorOp_default();
l_Lake_instInhabitedComparatorOp = _init_l_Lake_instInhabitedComparatorOp();
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__0);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__1);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__2);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__3);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__4);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__5);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__6);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__7);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__8);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie___closed__9);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM_trie);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__0);
l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_ComparatorOp_parseM___closed__1);
l_Lake_ComparatorOp_instToString___closed__0 = _init_l_Lake_ComparatorOp_instToString___closed__0();
lean_mark_persistent(l_Lake_ComparatorOp_instToString___closed__0);
l_Lake_ComparatorOp_instToString = _init_l_Lake_ComparatorOp_instToString();
lean_mark_persistent(l_Lake_ComparatorOp_instToString);
l_Lake_instReprVerComparator_repr___redArg___closed__0 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__0();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__0);
l_Lake_instReprVerComparator_repr___redArg___closed__1 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__1();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__1);
l_Lake_instReprVerComparator_repr___redArg___closed__2 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__2();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__2);
l_Lake_instReprVerComparator_repr___redArg___closed__3 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__3();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__3);
l_Lake_instReprVerComparator_repr___redArg___closed__4 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__4();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__4);
l_Lake_instReprVerComparator_repr___redArg___closed__5 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__5();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__5);
l_Lake_instReprVerComparator_repr___redArg___closed__6 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__6();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__6);
l_Lake_instReprVerComparator_repr___redArg___closed__7 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__7();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__7);
l_Lake_instReprVerComparator_repr___redArg___closed__8 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__8();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__8);
l_Lake_instReprVerComparator_repr___redArg___closed__9 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__9();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__9);
l_Lake_instReprVerComparator_repr___redArg___closed__10 = _init_l_Lake_instReprVerComparator_repr___redArg___closed__10();
lean_mark_persistent(l_Lake_instReprVerComparator_repr___redArg___closed__10);
l_Lake_instReprVerComparator___closed__0 = _init_l_Lake_instReprVerComparator___closed__0();
lean_mark_persistent(l_Lake_instReprVerComparator___closed__0);
l_Lake_instReprVerComparator = _init_l_Lake_instReprVerComparator();
lean_mark_persistent(l_Lake_instReprVerComparator);
l_Lake_VerComparator_wild___closed__0 = _init_l_Lake_VerComparator_wild___closed__0();
lean_mark_persistent(l_Lake_VerComparator_wild___closed__0);
l_Lake_VerComparator_wild___closed__1 = _init_l_Lake_VerComparator_wild___closed__1();
lean_mark_persistent(l_Lake_VerComparator_wild___closed__1);
l_Lake_VerComparator_wild = _init_l_Lake_VerComparator_wild();
lean_mark_persistent(l_Lake_VerComparator_wild);
l_Lake_VerComparator_instInhabited = _init_l_Lake_VerComparator_instInhabited();
lean_mark_persistent(l_Lake_VerComparator_instInhabited);
l_Lake_VerComparator_parse___closed__0 = _init_l_Lake_VerComparator_parse___closed__0();
lean_mark_persistent(l_Lake_VerComparator_parse___closed__0);
l_Lake_VerComparator_instToString___closed__0 = _init_l_Lake_VerComparator_instToString___closed__0();
lean_mark_persistent(l_Lake_VerComparator_instToString___closed__0);
l_Lake_VerComparator_instToString = _init_l_Lake_VerComparator_instToString();
lean_mark_persistent(l_Lake_VerComparator_instToString);
l_Lake_instReprVerRange_repr___redArg___closed__0 = _init_l_Lake_instReprVerRange_repr___redArg___closed__0();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__0);
l_Lake_instReprVerRange_repr___redArg___closed__1 = _init_l_Lake_instReprVerRange_repr___redArg___closed__1();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__1);
l_Lake_instReprVerRange_repr___redArg___closed__2 = _init_l_Lake_instReprVerRange_repr___redArg___closed__2();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__2);
l_Lake_instReprVerRange_repr___redArg___closed__3 = _init_l_Lake_instReprVerRange_repr___redArg___closed__3();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__3);
l_Lake_instReprVerRange_repr___redArg___closed__4 = _init_l_Lake_instReprVerRange_repr___redArg___closed__4();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__4);
l_Lake_instReprVerRange_repr___redArg___closed__5 = _init_l_Lake_instReprVerRange_repr___redArg___closed__5();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__5);
l_Lake_instReprVerRange_repr___redArg___closed__6 = _init_l_Lake_instReprVerRange_repr___redArg___closed__6();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__6);
l_Lake_instReprVerRange_repr___redArg___closed__7 = _init_l_Lake_instReprVerRange_repr___redArg___closed__7();
lean_mark_persistent(l_Lake_instReprVerRange_repr___redArg___closed__7);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__1);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__0);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__3);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__4);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__5);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__2);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__6);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__7);
l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8 = _init_l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8();
lean_mark_persistent(l_Array_Array_repr___at___00Array_Array_repr___at___00Lake_instReprVerRange_repr_spec__0_spec__0___closed__8);
l_Lake_instReprVerRange___closed__0 = _init_l_Lake_instReprVerRange___closed__0();
lean_mark_persistent(l_Lake_instReprVerRange___closed__0);
l_Lake_instReprVerRange = _init_l_Lake_instReprVerRange();
lean_mark_persistent(l_Lake_instReprVerRange);
l_Lake_instInhabitedVerRange_default___closed__0 = _init_l_Lake_instInhabitedVerRange_default___closed__0();
lean_mark_persistent(l_Lake_instInhabitedVerRange_default___closed__0);
l_Lake_instInhabitedVerRange_default___closed__1 = _init_l_Lake_instInhabitedVerRange_default___closed__1();
lean_mark_persistent(l_Lake_instInhabitedVerRange_default___closed__1);
l_Lake_instInhabitedVerRange_default = _init_l_Lake_instInhabitedVerRange_default();
lean_mark_persistent(l_Lake_instInhabitedVerRange_default);
l_Lake_instInhabitedVerRange = _init_l_Lake_instInhabitedVerRange();
lean_mark_persistent(l_Lake_instInhabitedVerRange);
l_Lake_VerRange_instToString = _init_l_Lake_VerRange_instToString();
lean_mark_persistent(l_Lake_VerRange_instToString);
l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds_spec__0___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtAnds___closed__0);
l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Util_Version_0__Lake_VerRange_ofClauses_fmtOrs_spec__0___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseTilde___closed__1);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseCaret___closed__1);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__1);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__2);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__3);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_parseWild___closed__4);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__0);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__1);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM_go___closed__2);
l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0 = _init_l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0();
lean_mark_persistent(l___private_Lake_Util_Version_0__Lake_VerRange_parseM___closed__0);
l_Lake_VerRange_parse___closed__0 = _init_l_Lake_VerRange_parse___closed__0();
lean_mark_persistent(l_Lake_VerRange_parse___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
